Spring配置注解提示

 

 

 在上面加入命名空间

1:xmlns:context="http://www.springframework.org/schema/context"

2:http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"

3:配置组件扫描   <context:component-scan base-package="com.xiaoze"></context:component-scan>

posted @ 2021-11-13 21:51  猫白养白猫  阅读(43)  评论(0)    收藏  举报