springmvc控制器返回时异常:java.lang.IllegalArgumentException: Unknown return value type: java.lang.Boolean
错误写法:
@RequestMapping("/isLogin")
@ResponseBody
public boolean isLogin(HttpServletRequest request, HttpServletResponse response) {
return false;}
正确的写法:加@ResponseBody
@RequestMapping("/isLogin")
@ResponseBody
public boolean isLogin(HttpServletRequest request, HttpServletResponse response) {
return false;
}