File tree Expand file tree Collapse file tree
mongodb/src/main/java/info/xiaomo/mongodb Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import org .springframework .boot .SpringApplication ;
66import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
77import org .springframework .boot .autoconfigure .domain .EntityScan ;
8+ import org .springframework .boot .autoconfigure .jdbc .DataSourceAutoConfiguration ;
9+ import org .springframework .boot .autoconfigure .orm .jpa .HibernateJpaAutoConfiguration ;
810import org .springframework .context .annotation .Bean ;
911import org .springframework .context .annotation .ComponentScan ;
1012import org .springframework .context .annotation .Configuration ;
3638 * Copyright(©) 2015 by xiaomo.
3739 **/
3840@ Configuration
39- @ EnableAutoConfiguration
4041@ ComponentScan ("info.xiaomo" )
4142@ EntityScan ("info.xiaomo.*.model" )
4243@ RestController
4344@ EnableSwagger2
45+ @ EnableAutoConfiguration (exclude ={DataSourceAutoConfiguration .class ,HibernateJpaAutoConfiguration .class })
4446public class MongodbMain {
4547 public static void main (String [] args ) throws Exception {
4648 SpringApplication .run (MongodbMain .class , args );
You can’t perform that action at this time.
0 commit comments