Spring AOP 必导jar包

来源:互联网 发布:网络公会白马义从 编辑:程序博客网 时间:2024/05/20 23:11

使用spring Aop编程除了要加入Spring的spring-aop jar包,还要加入aspectjrt.jar,aspectjweaver.jar,以及aopalliance_1.0.jar,否则报错:

org.springframework.beans.factory.BeanCreationExcspring-aopeption: Error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator': Instantiation of bean 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


aopalliance_1.0.jar下载地址:

http://mirrors.ibiblio.org/pub/mirrors/maven2/aopalliance/aopalliance/1.0/原地址:http://blog.csdn.net/rmx90/article/details/29355165
0 0
原创粉丝点击