The resource identified by this request is only capable of generating respon
2014-06-25 16:18
239 查看
Spring MVC 使用 @ResponseBody 报406错误,解决方法如下:
<bean id="messageAdapter" class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"> <property name="messageConverters"> <list> <!-- Support JSON --> <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter" /> </list> </property> </bean> <bean id="exceptionMessageAdapter" class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerExceptionResolver"> <property name="messageConverters"> <list> <!-- Support JSON --> <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter" /> </list> </property> </bean>
相关文章推荐
- @ResponseBody 406:The resource identified by this request is only capable of generating respon......
- 错误The resource identified by this request is only capable of generating(HTTP Status 406)
- The resource identified by this request is only capable of generating responses with characteristics
- description The resource identified by this request is only capable of generating responses with cha
- The resource identified by this request is only capable of generating responses with characteristics
- Spring mvc 406错误:The resource identified by this request is only capable of generating responses wit
- 错误406 The resource identified by this request is only capable of generating responses with character
- 【406错误】 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- The resource identified by this request is only capable of generating responses with characteristics
- 问题:The resource identified by this request is only capable of generating responses with characterist
- 26 记一次 SpringMVC 406 The resource identified by this request is only capable of generating responses
- The resource identified by this request is only capable of generating responses with characteristics
- 解决The resource identified by this request is only capable of generating responses with characteristi
- SpringMVC_The resource identified by this request is only capable of generating responses with characteristics
- This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has p