HttpMessageNotReadableException: Required request body is missing异常处理

1.异常示例
HttpMessageNotReadableException: Required request body is missing异常处理
文章图片

2.分析原因
【HttpMessageNotReadableException: Required request body is missing异常处理】2.1 接口参数用@RequestBody时,前端需用json格式传输
HttpMessageNotReadableException: Required request body is missing异常处理
文章图片

2.2 postman参数json格式设置
HttpMessageNotReadableException: Required request body is missing异常处理
文章图片

3.注意参数保持格式一致^ - ^

    推荐阅读