Recently integrated with spring4.x Jackson, the results have been inexplicably error, the results of online collection is in Maven or gradle environment to configure the dependency conditions, but the eclipseide environment of the jar package should be automatically dependent on the innuendo. The result has not been found to solve the answer.
Later, it is really a way of wood, suspected version of the problem, the result is a version of the problem caused. spring4.x must use at least Jackson2.6 to match.
The error is as follows:
<span style= "FONT-SIZE:18PX;" >java.lang.classnotfoundexception: Com.fasterxml.jackson.core.util.DefaultIndenter at Org.apache.catalina.loader.WebappClassLoaderBase.loadClass ( Webappclassloaderbase.java: 1308) at Org.apache.catalina.loader.WebappClassLoaderBase.loadClass (Webappclassloaderbase.java: 1142) </span
<span style= "FONT-SIZE:18PX;" >exception sending context initialized event to listener instance of class Org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name ' Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter ': Instantiation of Bean failed; Nested exception is org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; Nested exception is Java.lang.noclassdeffounderror:com/fasterxml/jackson/core/util/ Defaultindenter </span>
<span style= "FONT-SIZE:18PX;" >caused by:org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; Nested exception is java.lang.noclassdeffounderror:com/fasterxml/jackson/core/util/
Replacing Jackson's bag with more than 2.6 will solve it. Three core packages, available online.
Recently integrated with spring4.x jackson------>java.lang.classnotfoundexception: