严重: Servlet.service() for servlet [springmvc] in context with path [/ty] threw exception [Request pr
今天写代码时遇到一个异常,找了好久才找出来,粗心大意
先看一下报的异常
Servlet.service() for servlet [springmvc] in context with path [/ty] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Unknown return value type: java.lang.Boolean] with root cause后台使用的ssm技术,前台接收响应时用的ajax请求方式,忘记在控制层加@ResponseBody这个注解了,
导致接收异常