springmvc Required request body content is missing异常

springmvc Required request body content is missing异常


org.springframework.http.converter.HttpMessageNotReadableException: Required request body content is missing: org.springframework.web.method.HandlerMethod$HandlerMethodParameter@c35f8075

at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:79)
at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:157)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:124)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)



@RequestMapping("loginToken.json")
	@ResponseBody
	public HtmlJsonReBean loginToken(HttpServletRequest request,
			HttpServletResponse response, @RequestBody UmUser umUser) {



表示获取到的对象body体参数为空,请检查body体为何绑定参数失败,或检查请求是否以post方式提交

你可能感兴趣的:(+++++Java+++++)