Spring AOP uses the error creating bean with Name ' ... ' defined in class path resource. Problems and how to solve them
2018/3/24 unusual Little Note
Working environment: MYECLIPSE2015 (Jar is consistent with Java compiler Version), WINDOWS10
What it does: use testing for AOP in spring
Exception information:
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating Beans 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 Beans 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
。。。。。。
Exception Reason: Aspectjweaver.jar version conflict, resulting in a normal reference.
Pre-Exception User library:
WORKAROUND: Replace the new version of the JAR package
Aspectjweaver-1.6.1.jar:
Http://www.java2s.com/Code/Jar/a/Downloadaspectjweaver172jar.htm
Snail Original, welcome reprint, reproduced please indicate the source. Welcome message exchange, look forward to common progress.
qq:185466981
Spring AOP uses the error creating bean with Name ' ... ' defined in class path resource. Problems and how to solve them