@SpringBootApplicatuon分为三个注解,@SpringBootConfication,@ComponentScan和@EnableAutoConfiguration@SpringBootConfiguration.表示引导类也是配置类@ComponentScan扫描包及其子包的组件@EnableAutoConfiguration做了三件事,加载所有的配置类,根据条件判断类是否需要
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号