The resource identified by this request is a capable of generating responses with characteristics not acceptable accord ing to the request "accept" headers.
Use the following scenarios to resolve
SPRINGMVC JSON configuration Scheme
Spring4.1.0
Use the <annotation-driven/>mvc configuration method.
Increase in Pom.xml
1 <Dependency>2 <groupId>Com.fasterxml.jackson.core</groupId>3 <Artifactid>Jackson-core</Artifactid>4 <version>2.4.3</version>5 </Dependency>6 <Dependency>7 <groupId>Com.fasterxml.jackson.core</groupId>8 <Artifactid>Jackson-databind</Artifactid>9 <version>2.4.3</version>Ten </Dependency> One <Dependency> A <groupId>Com.fasterxml.jackson.core</groupId> - <Artifactid>Jackson-annotations</Artifactid> - <version>2.4.3</version> the </Dependency>
Adding @org.springframework.web.bind.annotation.responsebody annotations to the Controller method
You can resolve the issue in the title
HTTP Status 406---not acceptable according to the request "accept" headers