非常感谢: 谭卓博客
springmvc4 json
springmvc4 集成hibernate4 出现
NoClassDefFoundError:com/fasterxml/jackson/core/JsonProcessingException
springmvc4 JSON 的配置发生了变化:
<bean
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<list>
<ref bean="mappingJackson2HttpMessageConverter" />
</list>
</property>
</bean>
<bean id="mappingJackson2HttpMessageConverter"
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/html;charset=UTF-8</value>
<value>text/json;charset=UTF-8</value>
<value>application/json;charset=UTF-8</value>
</list>
</property>
</bean>
用到的json包分别为:
jackson-annotations-2.5.0.jar
jackson-core-2.5.0.jar
jackson-databind-2.5.0.jar
下载地址:
链接: http://pan.baidu.com/s/1mg5RCgS 密码: fjs9
转载请注明:谭卓博客 » Springmvc4 com/fasterxml/jackson/core/JsonProcessingException