Open xxw1754352621 opened 5 years ago
使用@ComponentScan(value = "com.fpx")等同于使用一下注解 @SpringBootApplication(scanBasePackages = "com.fpx")
原因如下: @SpringBootApplication This is a convenience annotation that is equivalent to declaring {@code @Configuration}, {@code @EnableAutoConfiguration} and {@code @ComponentScan}
Spring Boot常用的25个注解
https://juejin.im/post/5cc07fb7f265da039444ae0c