要用注解实现自动装备的xml配置文件的添加

使用注解要在xml配置文件中添加

xmlns:context="http://www.springframework.org/schema/contex"
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
<context:annotation-config></context:annotation-config>

 

 






posted @ 2021-10-17 16:01  睡觉时不困  阅读(41)  评论(0)    收藏  举报