Springboot ,1开启配置与2.扫描包(控制层,service层)二个注解@EnableAutoConfiguration,@ComponentScan 合并成一个注解@SpringBootApplication

//@EnableAutoConfiguration
//@ComponentScan(value= {"com.foen.cloud.controller.*","com.foen.cloud.service.impl"})
@SpringBootApplication(scanBasePackages= {"com.foen.cloud.controller.*","com.foen.cloud.service.impl"})

 

 

@SpringBootApplication(@EnableAutoConfiguration,ComponentScan)

Springboot ,1开启配置与2.扫描包(控制层,service层)二个注解@EnableAutoConfiguration,@ComponentScan 合并成一个注解@SpringBootApplication

上一篇:spring-boot-2.0.3不一样系列之源码篇 - run方法(三)之createApplicationContext,绝对有值得你看的地方


下一篇:How to deploy kotlin in androidstudio?