在spring中配置AOP切面时,提示错误信息
- cvc-complex-type.2.4.c:
- The matching wildcard is strict,
- but no declaration can be found for element 'aop:aspectj-autoproxy'.
是由于Spring 配置文件中的顺序颠倒引起的,将
xsi:schemaLocation=
http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/aop
顺序调整为
xsi:schemaLocation=
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd