
扫码关注微信公众号
回复“面试手册”,获取本站PDF版
回复“简历”,获取高质量简历模板
回复“加群”,加入程序员交流群
回复“电子书”,获取程序员类电子书
这个只需要在Spring配置文件中添加注解扫描即可,即<context:annotation-config/>
或<context:component-scan>
,其中<context:annotation-config>
表示的是注解扫描是针对已经在Spring容器里注册过的Bean,<context:component-scan>
不仅具备<context:annotation-config>
的所有功能,还可以在指定的package下面扫描对应的bean。
本站链接:https://www.mianshi.online,如需勘误或投稿,请联系微信:lurenzhang888
点击面试手册,获取本站面试手册PDF完整版