NoClassDefFoundError:aspectj/weaver/reflect/ReflectionWorld$Reflection

时间:2022-06-01 20:47:43

Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)

异常原因

缺少aspectjweaver.jar这个包,该包是spring集成AspectJ LTW织入器所需包。