03 2022 档案
摘要:SpringBoot基础注解 @SpringBootApplication:核心启动类,开启自动配置,相当于@SpringBootConfiguration+@EnableAutoConfiguration+@ComponentScan @Controller:用于注入控制层类 @Service:用
阅读全文
摘要:@Configuration(proxyBeanMethods = true) @Configuration写在类上,表示该类是个配置类。 springboot2中新加入的参数proxyBeanMethods = true,springboot总会检查使用到的组件是否是容器中的组件(容器中的组件都是
阅读全文