首页 > 编程语言 > 详细

Spring AOP配置文件

时间:2016-02-21 11:27:33      阅读:214      评论:0      收藏:0      [点我收藏+]

在<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

 

  有个小疑问,为啥加入之后,再删掉代码。又不会报错!???

Spring AOP配置文件

原文:http://www.cnblogs.com/not-NULL/p/5204534.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!