错误原因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
最新推荐文章于 2024-10-13 15:53:35 发布