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 />