版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Aqu415/article/details/79938895
component-scan:能完成有注解的类扫描注册bean并完成属性注入
annotation-config:完成属性注入
所以我的总结是(从功能上):
xml配置 + annotation-config == component-scan
具体示例可参看:
https://www.cnblogs.com/bnbqian/p/4985734.html