Java.lang.ClassNotFoundException:org.springframework.http.converter.json.MappingJacksonHttpMessageConverter
The use of defaultannotationhandlermapping and Annotationmethodhandleradapter is obsolete!
Spring 3.1 We should start with
Requestmappinghandlermapping to replace Defaultannotationhandlermapping,
Replace Annotationmethodhandleradapter with Requestmappinghandleradapter.
Resolving Mappingjacksonhttpmessageconverter errors in spring4.x
Please use Org.springframework.http.converter.json in the spring4.x. mappingjackson2httpmessageconverter instead.
and change the Maven dependency to the following:
<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId> com.fasterxml.jackson.core</groupid> <artifactId>jackson-databind</artifactId> <version>2.5.1</version> </dependency>
We used 7-zip to see the Spring-web-version.jar, we did not find mappingjacksonhttpmessageconverter this class.
Question Mappingjacksonhttpmessageconverter ClassNotFoundException