Home
» Spring MVC
» HTTP Status 406 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.
HTTP Status 406 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.
HTTP Status 406
Add following JSON jars to Project lib link
1. jackson-annotations-2.2.3.jar
2. jackson-core-2.2.3.jar
3. jackson-databind-2.2.3.jar
Or
Add following dependies
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.2.3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.2.3</version>
</dependency>
Get Updates
Subscribe to our e-mail to receive updates.
Related Articles
Subscribe to:
Post Comments (Atom)
4 Responses to “HTTP Status 406 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.”
September 18, 2015 at 9:37 AM
Thanks it solved my issue.
December 1, 2015 at 11:37 AM
Please have a look this URL, how to get rid of this issues in Spring + JSON
https://itexpertsconsultant.wordpress.com/2015/12/01/spring-mvc-json-406-not-acceptable-characteristics-not-acceptable-according-to-the-request-accept-headers/
August 8, 2016 at 12:06 PM
same above error is coming ,even i added all three jar, i am calling my java call using ajax dojo.io.iframe.send({
url: Eurl,
method: "GET",
handleAs: "json",
load: function(response, ioArgs){
alert("hhh");
return response;
},
error: function(response, ioArgs){
alert("fail");
return response;
}
})
August 8, 2016 at 12:07 PM
to download my generated excel
Post a Comment
Thanks for your comments