1. Exception information: org/aspectj/weaver/reflect/ReflectionWorld $ ReflectionWorldException;
2. Cause of exception: the aspectjweaver. jar package is missing. This package is required for spring to integrate the AspectJ LTW scheduler;
3. Solution: add the aspectjweaver. jar package to the project.
Exception Code
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 org. springframework. core. type. StandardAnnotationMetadata. hasAnnotatedMethods (StandardAnnotationMetadata. java: 136)
At org. springframework. context. annotation. ConfigurationClassBeanDefinitionReader. checkConfigurationClassCandidate (ConfigurationClassBeanDefinitionReader. java: 318)
At org. springframework. context. annotation. ConfigurationClassPostProcessor. processConfigBeanDefinitions (ConfigurationClassPostProcessor. java: 175)
At org. springframework. context. annotation. ConfigurationClassPostProcessor. postProcessBeanDefinitionRegistry (ConfigurationClassPostProcessor. java: 144)
At org. springframework. context. support. AbstractApplicationContext. invokeBeanFactoryPostProcessors (AbstractApplicationContext. java: 599)
At org. springframework. context. support. AbstractApplicationContext. refresh (AbstractApplicationContext. java: 407)
At org. springframework. web. context. ContextLoader. createWebApplicationContext (ContextLoader. java: 282)
At org. springframework. web. context. ContextLoader. initWebApplicationContext (ContextLoader. java: 204)
At org. springframework. web. context. ContextLoaderListener. contextInitialized (ContextLoaderListener. java: 47)
At org. apache. catalina. core. StandardContext. listenerStart (StandardContext. java: 4205)
At org. apache. catalina. core. StandardContext. start (StandardContext. java: 4704)
At org. apache. catalina. core. ContainerBase. addChildInternal (ContainerBase. java: 799)
At org. apache. catalina. core. ContainerBase. addChild (ContainerBase. java: 779)
At org. apache. catalina. core. 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 org. apache. catalina. core. ContainerBase. start (ContainerBase. java: 1061)
At org. apache. catalina. core. StandardHost. start (StandardHost. java: 840)
At org. apache. catalina. core. ContainerBase. start (ContainerBase. java: 1053)
At org. apache. catalina. core. StandardEngine. start (StandardEngine. java: 463)
At org. apache. catalina. core. StandardService. start (StandardService. java: 525)
At org. apache. catalina. core. 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 solution code
<Dependency>
<GroupId> org. aspectj </groupId>
<ArtifactId> aspectjweaver </artifactId>
<Version> 1.6.12 </version>
</Dependency>