Spring缺少aspectjweaver.jar异常 1、异常信息:org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException; 2、异常原因:缺少aspectjweaver.jar这个包,该包是spring集成AspectJ LTW织入器所需包; 3、解决方案:在工程中加入 aspectjweaver.jar 包。 异常代码java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethods(Class.java:1791) at orre.type.StandardAnnotationMetadata.hasAnnotatedMethods(StandardAnnotationMetadata.java:136) at orntext.annotation.ConfigurationClassBeanDefinitionReader.checkConfigurationClassCandidate(ConfigurationClassBeanDefinitionReader.java:318) at orntext.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:175) at orntext.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:144) at orntext.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:599) at orntext.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407) at org.springframeworntext.ContextLoader.createWebApplicationContext(ContextLoader.java:282) at org.springframeworntext.ContextLoader.initWebApplicationContext(ContextLoader.java:204) at org.springframeworntext.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at orre.StandardContext.listenerStart(StandardContext.java:4205) at orre.StandardContext.start(StandardContext.java:4704) at orre.ContainerBase.addChildInternal(ContainerBase.java:799) at orre.ContainerBase.addChild(ContainerBase.java:779) at orre.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at orre.ContainerBase.start(ContainerBase.java:1061) at orre.StandardHost.start(StandardHost.java:840) at orre.ContainerBase.start(ContainerBase.java:1053) at orre.StandardEngine.start(StandardEngine.java:463) at orre.StandardService.start(StandardService.java:525) at orre.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ... 36 more Pom解决方案代码<dependency$amp;>amp;$nbsp; <groupId>org.aspectj</groupId$amp;>amp;$nbsp; <artifactId>aspectjweaver</artifactId$amp;>amp;$nbsp; <version>1.6.12</version$amp;>amp;$nbsp; </dependency$amp;>amp;$nbsp;