1、@Configuration注解(类似application.xml中的<beans>标签)
2、SPI机制(spring.factories文件配置对应实现类)
3、@import引入(对比application.xml中通过import引入其他xml文件)
1、@Configuration注解(类似application.xml中的<beans>标签)
2、SPI机制(spring.factories文件配置对应实现类)
3、@import引入(对比application.xml中通过import引入其他xml文件)
本文标题:Spring Boot自动装配原理
本文链接:https://www.haomeiwen.com/subject/cbahjjtx.html
网友评论