Project Framework: Spring+springmvc+mybatis problem Description: Front-end Ajax post JSON data to the backend, network error 415 front-end exception information: Failed to load resource:the server responded with a status of 415 (unsupported Media Type) Back-end exception information: No cause for error: Missing Jackson bag similar issues note:
- SPRINGMVC add configuration, annotations;
- Pom.xml Add the Jackson Package reference;
- Ajax request is not set Content-type to Application/json
- Send the requested content do not turn into a JSON object, directly send a JSON string to
<!--JSON parsing package--
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.5.2</version>
</dependency>
Front-end Ajax submits JSON data to backend with post, network error 415