您的位置:首页 > 编程语言 > Java开发

Spring AOP配置文件

2016-02-21 10:46 429 查看
在<aop:config>...</aop:config>报错:

  

Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:aspectj-autoproxy'.
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/aop/spring-aop-3.0.xsd', because 1) could not find the
document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.


  

解决办法如下:

在头部的xsi:schemaLocation中加入:

  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd[/code] 
  有个小疑问,为啥加入之后,再删掉代码。又不会报错!???
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: