标签:mappingjacksonhttpmessageconverter classnotfoundexception
java.lang.ClassNotFoundException: org.springframework.http.converter.json.MappingJacksonHttpMessageConverter
spring 3.1 开始我们应该用
RequestMappingHandlerMapping 来替换 DefaultAnnotationHandlerMapping,
用 RequestMappingHandlerAdapter 来替换 AnnotationMethodHandlerAdapter。
解决spring4.x中的MappingJacksonHttpMessageConverter错误
在spring4.x中请用org.springframework.http.converter.json.MappingJackson2HttpMessageConverter代替。
并将maven依赖改成如下:
<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>
我们用7-zip去查看spring-web-version.jar,确实已找不到MappingJacksonHttpMessageConverter这个class了。
问题MappingJacksonHttpMessageConverter ClassNotFoundException
标签:mappingjacksonhttpmessageconverter classnotfoundexception
原文地址:http://17099933344.blog.51cto.com/12891875/1932486