One:What is this ?
- HTTP response status codes :
client error response code indicates that a response matching the list of acceptable values defined in Accept-Charset and Accept-Language cannot be served.
Two:How to resolve 406 problem when using @ResponseBody return json data ?
anwser :
(1): Missing jar package
(2): jar Conflict with othersif you use Spring 3.x jar,please following me(Maven Repository-Spring 3.x.jar)
# jackson-mapper-asl.jar
#jackson-core-asl.jarif you use Spring 4.x jar,please following me(Maven Repository-Spring 4.x.jar)
# jackson-databind.jar
# jackson-core.jar
# jackson-annotations.jarImportantly, in Spring Configuration file,add
<mvc:annotation-driven />
本文介绍了解决HTTP响应状态码406错误的方法,该错误通常出现在客户端请求的数据类型不可接受时。文章详细解释了如何通过调整jar包依赖和配置Spring框架来解决这一问题。
9227

被折叠的 条评论
为什么被折叠?



