springAop遇到的问题
来源:互联网 发布:淘宝心是怎么升级的 编辑:程序博客网 时间:2024/06/05 17:11
1、nested exception is org.xml.sax.SAXParseException: The prefix "aop" for element "aop:config" is not bound.
原因是<beans ></beans>中没有添加aop的命名空间。
完整的<beans ></beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
">
2、java.lang.ClassNotFoundException: org.aopalliance.aop.Advice
原因是缺少包:
aopalliance-1.0.jar
aspectjweaver-1.5.3.jar
javassist-3.9.0.GA.jar
aspectjweaver-1.5.3.jar
javassist-3.9.0.GA.jar
下载地址:http://download.csdn.net/detail/u013445663/7864655
0 0
- springAop遇到的问题
- SpringAOP学习遇到的问题
- SpringAOP切换数据源的问题总结
- SpringAOP的实现
- 基于注解的SpringAOP
- SpringAop的使用
- SpringAop的相关概念
- springAOP的入门例子
- springAOP的注解
- SpringAOP的实现过程
- SpringAOP的实现方式
- springAOP的简单实现
- SpringAop的注解形式
- springAOP的概念
- springAOP的原理
- springAOP的各种通知
- springAOP的注解版
- SpringAOP的实现原理
- linux lsof详解
- .NET程序性能的基本要领
- B-树和B+树的应用:数据搜索和数据库索引
- 大家来开发的激发了肯德基了开发的离开的房间看了几分
- 笔记09 初始化块,静态变量以及打包
- springAop遇到的问题
- C++中的运算符重载问题
- Android数据库高手秘籍(零)——前言[转载]
- js-dom
- springMVC 获取request 处理全局session业务
- poj 1700 n人过河(贪心)
- 【SSH进阶之路】一步步重构MVC实现Struts框架——彻底去掉逻辑判断(五)
- 【UVA】10739 - String to Palindrome(动态规划)
- 错误日志-Android家长端登陆不了