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>