Spring-aspectj缺少jar包报错内容
作者:
煗NUAN | 来源:发表于
2020-02-27 23:11 被阅读0次Spring-aspectj缺少jar包报错内容

报错信息.png
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'us' defined in class path resource [aop4/beans.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot resolve reference to bean 'pt' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pt': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.aop.aspectj.AspectJExpressionPointcut]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.0</version>
</dependency>
</dependencies>
本文标题:Spring-aspectj缺少jar包报错内容
本文链接:https://www.haomeiwen.com/subject/vpifhhtx.html
网友评论