File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
freemarker/src/main/java/info/xiaomo/freemarker Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
5+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
56import org .springframework .boot .autoconfigure .domain .EntityScan ;
7+ import org .springframework .boot .autoconfigure .jdbc .DataSourceAutoConfiguration ;
8+ import org .springframework .boot .autoconfigure .orm .jpa .HibernateJpaAutoConfiguration ;
69import org .springframework .context .annotation .ComponentScan ;
710import org .springframework .context .annotation .Configuration ;
811
2023 * Copyright(©) 2015 by xiaomo.
2124 **/
2225@ Configuration
23- @ EnableAutoConfiguration
2426@ ComponentScan ("info.xiaomo" )
2527@ EntityScan ("info.xiaomo.*.model" )
28+ @ EnableAutoConfiguration (exclude ={DataSourceAutoConfiguration .class ,HibernateJpaAutoConfiguration .class })
2629public class FreemarkerMain {
2730
2831 public static void main (String [] args ) throws Exception {
You can’t perform that action at this time.
0 commit comments