Because @responseBody is set to convert the object to JSON format, no conversion dependent JAR is available.
@ResponseBody
@RequestMapping("getBookJson")
public List<Book> getBookJson() {
List<Book> books = bookService.findBooks();
return books;
}
br> & lt> br>
Read More:
- 209151; org.json.JSONException A JSONObject text must begin with'{‘at character 1 of {
- Spring MVC 406 status code / could not find acceptable representation
- Mybatis uses step-by-step lazy loading to cause abnormal JSON conversion. The interface 500 reports an error
- Error: required request body is missing, @ requestbody annotation usage
- Breaking Baidu’s secret of making money by reading
- Syntax error: unexpected end of file problem [two solutions]
- Error: cocoa error 3840
- Pass parameters to the YML file, ansible playbook command
- ajax error 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- 1、 Java 8 date and local date
- The JSON object is converted into a formdata object, and the formdata object is converted into a JSON object
- Realization of springboot authorization verification technology based on JWT
- Solve gitbook rangeerror: maximum call stack size exceeded
- Springboot integration redis reports non null key required (solved)
- Four ways to get Django parameters in request
- Transformation of JS map and JSON
- Java lossy conversion
- json.load (file) error
- Solve the problem of request method ‘get’ not supported
- [leetcode] zigzag transformation