springAOP demo 带错误解决文档
来源:互联网 发布:林少华 知乎 编辑:程序博客网 时间:2024/06/03 16:39
首先要说的是目前spring最新版本的下载
1.树形结构:http://repo.springsource.org/libs-release-local/org/springframework/spring/
2.相关依赖包可以在这里下载 http://www.apache.org/
在搭建spring项目时通常需要这些jar包
commons-logging-1.1.3.jar
spring-aop-4.0.6.RELEASE.jar
spring-beans-4.0.6.RELEASE.jar
spring-context-4.0.6.RELEASE.jar
spring-core-4.0.6.RELEASE.jar
spring-expression-4.0.6.RELEASE.jar
在使用spring额外功能时
1 需要在xml文件中加入命名空间
可以在spring-framework-4.0.6.RELEASE\docs\spring-framework-reference\html 中搜索关键字查找配置
2 加入需要的jar包(依赖包)
由于没有引入 spring-aop-4.0.6.RELEASE.jar引起的错误
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem:Unable to locate Spring NamespaceHandler for XMLschema namespace [http://www.springframework.org/schema/aop]
Offendingresource: class path resource [beans.xml]
atorg.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
由于缺少依赖包 aspectjweaver-1.6.12.jar
http://search.maven.org/remotecontent?filepath=org/aspectj/aspectjweaver/1.6.12/aspectjweaver-1.6.12.jar
org.springframework.beans.factory.BeanCreationException:Error creating bean with name'org.springframework.aop.config.internalAutoProxyCreator': Instantiation ofbean failed; nested exception is org.springframework.beans.BeanInstantiationException:Could not instantiate bean class[org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]:Constructor threw exception; nested exception isjava.lang.NoClassDefFoundError:org/aspectj/lang/annotation/Around
由于缺少依赖包 aopalliance-1.0.jar
org.springframework.beans.factory.BeanCreationException:Error creating bean with name'org.springframework.aop.config.internalAutoProxyCreator': Instantiation ofbean failed; nested exception is org.springframework.beans.BeanInstantiationException:Could not instantiate bean class[org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]:Constructor threw exception; nested exception is java.lang.NoClassDefFoundError:org/aopalliance/intercept/MethodInterceptor
- springAOP demo 带错误解决文档
- SpringAOP Demo
- Caffe运行自带Demo出现Unknown layer type错误解决
- 用springAOP解决权限问题
- SpringAOP面向切面详解(带实例)
- SpringAOP
- SpringAOP
- SpringAop
- SpringAOP
- springAOP
- springAOP
- SpringAOP
- SpringAop
- springAOP
- springAOP
- SpringAop
- SpringAOP
- springAOP
- Objective-C Foundation框架实践——NSArray(二)
- java值传递还是应用传递
- ubuntu下Pycharm安装及配置
- 多元统计分析上机题之R语言实现(多元正态分布)
- 深入探究Lua中的解析表达式
- springAOP demo 带错误解决文档
- leetcode之Majority Element II
- 浅表核心动画
- Tcp/IP协议详解和IP地址分类
- 最小化后右下角(托盘)小图标的实现
- 1043. 输出PATest(20)
- js拖拽实现
- 语料库corpus
- NYOJ——205 求余数