In spring boot there is such a great thing for returning JSON's with automatic pulling it out of the class:
@RestController public class TaskController { private DBService dbService = new DBService(); @RequestMapping(value = "/tasks") @CrossOrigin public @ResponseBody List<TaskDataSet> tasks() { try { List<TaskDataSet> tasks = dbService.getAllTasks(); return tasks; } catch (DBException e) { System.out.println(e); e.printStackTrace(); } return null; } } If you feed this spring mvc code, you get the following error:
HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList How do i do the same in spring mvc right?
HTTP Status 500you get in the browser, what is the error on the server side, is there a wall-race? - Bohdan Korinnyi