spring AOP使用中Error creating bean with name ‘…’defined in class path resource..问题及其解决方法


spring AOP使用中Error creating bean with name ‘…’defined in class path resource..问题及其解决方法

2018/3/24 异常小记

 

工作环境:myeclipse2015(jar与java compiler 版本一致)、windows10

工作内容:spring 中AOP的使用测试

异常信息:

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthBeforeAdvice' defined in class path resource [applicationContext2.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Cannot create inner bean '(inner bean)#19f3736' of type [org.springframework.aop.aspectj.AspectJMethodBeforeAdvice] while setting constructor argument; nested exception is

。。。。。。

 

异常原因:aspectjweaver.jar 版本冲突,导致无法正常引用。

异常前用户库:

 

 

 

解决方法:更换新版本的jar包

aspectjweaver-1.6.1.jar下载地址:

http://www.java2s.com/Code/Jar/a/Downloadaspectjweaver172jar.htm

 

 

 

snail 原创,欢迎转载,转载请注明出处。欢迎留言交流,期待共同进步。

QQ:185466981


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM