06 - May - 2020 14:16:22. 442 warning [RMI TCP Connection (3) - 127.0.0.1] org. Springframework. Web. Context. Support. The XmlWebApplicationContext. Refresh the Exception encountered during the context initialization - cancelling refresh attempt: org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'mappingJackson2HttpMessageConverter: Lookup method resolution failed; Nested exception is Java. Lang. An IllegalStateException: Failed to introspect a Class [org. Springframework. HTTP. Converter. Json. MappingJackson2HttpMessageConverter] from this [ParallelWebappClassLoader
Context: StudentSystemSSMDemo_war_exploded
Delegate: false
-- -- -- -- -- -- -- -- -- -- & gt; The Parent this:
java.net.URLClassLoader@379619aa
]
06 - May - 2020 14:16:22. 443 serious [RMI TCP Connection (3) - 127.0.0.1] org. Springframework. Web. Servlet. DispatcherServlet. InitServletBean Context initialization failed
Org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'mappingJackson2HttpMessageConverter: Lookup method resolution failed; Nested exception is Java. Lang. An IllegalStateException: Failed to introspect a Class [org. Springframework. HTTP. Converter. Json. MappingJackson2HttpMessageConverter] from this [ParallelWebappClassLoader
Context: StudentSystemSSMDemo_war_exploded
Delegate: false
-- -- -- -- -- -- -- -- -- -- & gt; The Parent this:
java.net.URLClassLoader@379619aa
]
CodePudding user response:
Stick the code!
Reading the wrong information should be uninitialized bean, so can't get, use it need new, cannot use @ Autowire
MappingJackson2HttpMessageConverter MappingJackson2HttpMessageConverter=new MappingJackson2HttpMessageConverter ();
CodePudding user response: