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:
- Spring MVC 406 status code / could not find acceptable representation
- Spring MVC error: could not find acceptable representation
- Spring MVC error HTTP status 400 – bad request
- When the spring MVC project is running on idea, an error is reported when the controller is a null pointer
- [Four Methods] memcached unzip error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- Can not start, can not find QT pligins “windows” problem after installing QT vs environment 2021-06-13
- When docker starts tomcat, the access port of the container displays 404, and the source server fails to find the representation of the target resource or is unwilling to disclose an existing one
- Spring MVC – enable static resource access
- Spring MVC realizes page upload file
- Error 404 reported by spring MVC access Servlet
- Multithreading: when doing unit test, use thread pool to find that the specified code is not running and skip directly
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- About the problem of collect2.exe [error] LD returned 1 exit status in dev!!!
- Possible causes of [errror] ID returned 1 exit status error in dev C + + Programmer
- Solution to error [error] LD returned 1 exit status in C language
- .. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***
- Error Code: 1055. Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated
- An error is reported when installing the package directly in pycharm, but it can be installed through the terminal. Error non zero exit code (2)
- This (code, message, data: null) still exists after importing spring cloud project into Lombok; the data in the project is unrecognized
- Use of HQL query.list () is a null pointer exception, but the database can find out the result