@RequestMapping(value="getUserById")
@ResponseBody
public User getUserById(int userId){
System.out.println("userId="+userId);
return businessService.getUserById(userId);
}
result of browser call:
Tue Oct 30 13:46:21 CST 2018
There was an unexpected error (type=Internal Server Error, status=500).
No converter found for return value of type: class com.sunlei.springboot.model.User
won"t springboot do the default json conversion? I think all kinds of jackson packages have been imported into maven. What settings are missing?