springboot
小旋风_亮宇
永不停止前进的脚步
展开
-
springboot starter的原理,soringboot的核心注解是什么?它主要由哪几个注解组成的?
原理:组件的META-INF文件下均含有spring.factories文件,自动配置模块中,SpringFactoriesLoader收集到文件中的类全名并返回一个类全名的数组,返回的类全名通过反射被实例化,就形成了具体的工厂实例,工厂实例来生成组件具体需要的bean。 核心注解:@SpringBootApplication 组成注解:@SpringBootConfiguration、@EnableAutoConfiguration、@ComponentScan ...原创 2021-07-02 12:55:25 · 101 阅读 · 0 评论 -
springboot集成quartz框架遇到的问题
Spring Boot@Component注解下的类无法@Autowired的问题原创 2020-04-15 19:16:33 · 175 阅读 · 0 评论