通配符的匹配很全面, 但无法找到元素 'context:component-scan' 的声明。

文件头补上

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

xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop 
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context.xsd"

即可


<context:component-scan base-package="org.itee.se.impl"/>

写完之后也一定要记得补上<aop:aspectj-autoproxy/>


版权声明:本文为Caster_Saber原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。