Imitate others built a much module project, just start writing, the first function of login, and then start the project, normal, and then test the login function, error:
[ERROR] 2020-02-11 12:36:49, 539 org. Springframework. Web. Servlet. DispatcherServlet - Context initialization failed
Org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'org. Springframework. Web. Servlet. MVC) method. The annotation. The RequestMappingHandlerMapping' : the Invocation of the init method failed; Nested exception is Java. Lang. NoSuchMethodError: org. Springframework. Core. The annotation. AnnotatedElementUtils. FindMergedAnnotation (Ljava/lang/reflect/AnnotatedElement; Ljava/lang/Class) Ljava/lang/annotation/annotations;
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InitializeBean (AbstractAutowireCapableBeanFactory. Java: 1572)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 539)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 476)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory $1. GetObject (AbstractBeanFactory. Java: 303)
The at org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 230)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 299)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 194)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. PreInstantiateSingletons (DefaultListableBeanFactory. Java: 755)
The at org. Springframework. Context. Support. AbstractApplicationContext. FinishBeanFactoryInitialization (AbstractApplicationContext. Java: 762)
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 480)
The at org. Springframework. Web. Servlet. FrameworkServlet. ConfigureAndRefreshWebApplicationContext (FrameworkServlet. Java: 668)
The at org. Springframework. Web. Servlet. FrameworkServlet. CreateWebApplicationContext (FrameworkServlet. Java: 634)
The at org. Springframework. Web. Servlet.
Under Caused by: Java. Lang. NoSuchMethodError: org. Springframework. Core. The annotation. AnnotatedElementUtils. FindMergedAnnotation (Ljava/lang/reflect/AnnotatedElement; Ljava/lang/Class) Ljava/lang/annotation/annotations;
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerMapping. CreateRequestMappingInfo (RequestMappingHandlerMapping. Java: 203)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerMapping. GetMappingForMethod (RequestMappingHandlerMapping. Java: 185)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerMapping. GetMappingForMethod (53) RequestMappingHandlerMapping. Java:
The at org. Springframework. Web. Servlet. Handler. AbstractHandlerMethodMapping $1. Inspect (AbstractHandlerMethodMapping. Java: 218)
The at org. Springframework. Core. MethodIntrospector $1. DoWith (MethodIntrospector. Java: 72)
The at org. Springframework. Util. ReflectionUtils. DoWithMethods (ReflectionUtils. Java: 493)
The at org. Springframework. Core. MethodIntrospector. SelectMethods (MethodIntrospector. Java: 68)
The at org. Springframework. Web. Servlet. Handler. AbstractHandlerMethodMapping. DetectHandlerMethods (AbstractHandlerMethodMapping. Java: 214)
The at org. Springframework. Web. Servlet. Handler. AbstractHandlerMethodMapping. InitHandlerMethods (AbstractHandlerMethodMapping. Java: 191)
The at org. Springframework. Web. Servlet. Handler. AbstractHandlerMethodMapping. AfterPropertiesSet (AbstractHandlerMethodMapping. Java: 161)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerMapping. AfterPropertiesSet (RequestMappingHandlerMapping. Java: 125)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InvokeInitMethods (AbstractAutowireCapableBeanFactory. Java: 1631)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. InitializeBean (AbstractAutowireCapableBeanFactory. Java: 1568)
. 36 more
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Then I check online solution, said on basic are less dependent on, or repeated, conflict, and I am imitate others, most of the things is the same, but the pom file before I am using my own writing project, and add a little bit, I will compare two different pom file, all the dependent on how I commented out, also tried online said many of the other way, in a word are not make,
In the end, I think the problem most likely out of pom again, I'll replace pom file with others, and then run, so that, didn't change my artifactId, I watched their dependence, dependence on child project or the original, change of the total project, then I changed the artifactId, still working, rely on remains unchanged, then I change the original pom file, still so! Restart your idea to run again, still so!!!!!!
Ah, it's strange strange, this is equivalent to my pom file did not change, change again into other back is that, why not make the original? ! Really upset me, somehow, too dejected, it make my day didn't mind does other,
If there are bosses know the reason, please let us know, thank you.