Error creating bean with name ‘…’defined in class path resource[applicationContext2.xml]:问题及其解决方法

Errorcreating bean with name ‘…’defined in class path resource..问题及其解决方法

2018/3/24 异常小记

异常信息:

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 beanfailed; nested exception is org.springframework.beans.factory.BeanCreationException:Error creating bean with name'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Cannot create innerbean '(inner bean)#19f3736' of type[org.springframework.aop.aspectj.AspectJMethodBeforeAdvice] while settingconstructor argument; nested exception is

。。。。。。

 

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

异常前用户库:

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

aspectjweaver-1.7.2.jar下载地址:

https://download.csdn.net/download/github_39587265/10306166

 

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

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

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

QQ:185466981



  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值