Spring AOP配置文件
2016-02-21 10:46
429 查看
在<aop:config>...</aop:config>报错:
解决办法如下:
在头部的xsi:schemaLocation中加入:
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]
有个小疑问,为啥加入之后,再删掉代码。又不会报错!???
相关文章推荐
- Java 集合系列08之 List总结(LinkedList, ArrayList等使用场景和性能分析)
- java发送短信系列之限制日发送次数
- 《JAVA语言程序设计》(二)
- java发送短信系列之限制发送频率
- java中的随机数Random
- 生产消费者模式
- java发送短信系列之同步、异步发送短信
- java安全——类加载器+字节码校验+安全管理器与访问权限
- System.currentTimeMillis() :JAVA获取当前时间
- spring拦截器配置
- JavaWeb开发尝试
- Struts2 路径问题
- JAVA多线程-线程间通信(四)-join的使用
- Tiny Spring 分析一
- Java代码实践12306售票算法(二)
- Java 集合系列07之 Stack详细介绍(源码解析)和使用示例
- Java NIO 同步非阻塞Socket DEMO
- java命令
- Java构造器和方法的区别
- Java-----Excel转HTML