错误原因controller层 没有加@ResponseBody 加上就不会报错了 @RequestMapping(value = "/insert", method = RequestMethod.GET, produces = "application/json; charset=utf-8") @ResponseBody public Integer insertUser(User user){ return userDao.insertUser(user); }
java.lang.IllegalArgumentException: Unknown return value type: java.lang.Integer] with root cause
猜你喜欢
转载自blog.csdn.net/qq_39326137/article/details/81367510
今日推荐
周排行