你的位置:首页 > Java教程

[Java教程]spring The matching wildcard is strict, but no declaration can be found for element报错原因


xsi:schemaLocation=http://www.springframework.org/schema/aop/spring-aop.xsd          http://www.springframework.org/schema/aop

Spring 配置文件中的顺序颠倒会报如下的错误

The matching wildcard is strict, but no declaration can be found for element 'aop:config'.

只要调整顺序就可以了:

xsi:schemaLocation= http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd