标签:code service ota component 注解 lob app nbsp question
这个是因为@SpringBootApplication 注解的原因,我们知道 @SpringBootApplication 看作是 @Configuration、@EnableAutoConfiguration、@ComponentScan 注解的集合。
@EnableAutoConfiguration:启用 SpringBoot 的自动配置机制@ComponentScan: 扫描被@Component (@Service,@Controller)注解的bean,注解默认会扫描该类所在的包下所有的类。@Configuration:允许在上下文中注册额外的bean或导入其他配置类@EnableAutoConfiguration是启动自动配置的关键
1.https://github.com/Snailclimb/springboot-guide/blob/master/docs/interview/springboot-questions.md
标签:code service ota component 注解 lob app nbsp question
原文地址:https://www.cnblogs.com/flgg/p/12158683.html