Spring 3.X Json Status 406 "Characteristics Not Acceptable According To The Request "Accept" Headers ()" - Stack Overflow

java SpringMVC cannot return Json or Xml,Http 406 Stack Overflow

Spring 3.X Json Status 406 "Characteristics Not Acceptable According To The Request "Accept" Headers ()" - Stack Overflow. Spring 3.x json status 406 characteristics not acceptable according to the request accept headers () Characteristics not acceptable according to the request accept headers 0 votes.

java SpringMVC cannot return Json or Xml,Http 406 Stack Overflow
java SpringMVC cannot return Json or Xml,Http 406 Stack Overflow

It seems that if the jackson library is not loaded, the spring app will not offer application/json and thus triggers the 406. 39 singh prabhat user1740567 spring 3x json status. By this request is only capable of generating responses with characteristics not acceptable according to the request accept headers (). i also tried an alternate mechanism by access this using javascript ajax to make sure my request header has application/json. 406 spring mvc json, not acceptable according to the request accept headers 0 votes. The first digit of the status code specifies one of five. The first digit of the status code specifies one of five standard classes of responses. Status codes are issued by a server in response to a client's request made to the server. Descriptionthe resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request accept headers by using the following function i can get the expected json: So, your request accept header is application/json and your controller is not able to return that. 406 spring mvc json, not acceptable according to the request accept headers 0 votes.

Use the following solution to solve. 406 spring mvc json, not acceptable according to the request accept headers 0 votes. Note that the original request accept header of / should mean anything. The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request. 39 singh prabhat user1740567 spring 3x json status 406 characteristics not. Use the mvc configuration method. Characteristics not acceptable according to the request accept headers i am using spring 4.1.1.release and have included: The first digit of the status code specifies one of five standard classes of responses. Characteristics not acceptable according to the request accept headers 0 votes. The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request accept headers. I am using spring 4.1.1.release and have included: