zl程序教程

您现在的位置是:首页 >  后端

当前栏目

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

SpringBoot控制配置 一个 开启 注解 合并 Service
2023-09-11 14:22:43 时间

//@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)