| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,10 @@ | |||
| 2 | 2 | ||
| 3 | 3 | import org.springframework.boot.SpringApplication; | |
| 4 | 4 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
| 5 | + import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
| 5 | 6 | import org.springframework.boot.autoconfigure.domain.EntityScan; | |
| 7 | + import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | ||
| 8 | + import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration; | ||
| 6 | 9 | import org.springframework.context.annotation.ComponentScan; | |
| 7 | 10 | import org.springframework.context.annotation.Configuration; | |
| 8 | 11 | ||
@@ -20,9 +23,9 @@ | |||
| 20 | 23 | * Copyright(©) 2015 by xiaomo. | |
| 21 | 24 | **/ | |
| 22 | 25 | @Configuration | |
| 23 | - @EnableAutoConfiguration | ||
| 24 | 26 | @ComponentScan("info.xiaomo") | |
| 25 | 27 | @EntityScan("info.xiaomo.*.model") | |
| 28 | + @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class}) | ||
| 26 | 29 | public class FreemarkerMain { | |
| 27 | 30 | ||
| 28 | 31 | public static void main(String[] args) throws Exception { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments