The 406 status code can not find acceptable representation is returned in spring MVC

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: