org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing:

org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing_http


org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing_post请求_02

方法上@Requestmapping定义的是post请求方式,使用postman也是发送的post请求,但是请求异常。

org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing

原因是:方法定义了参数,请求时没有传递参数,所以请求异常。

org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing_post请求_03

在请求中添加参数{}后,请求正常。