报错信息:
{
"timestamp": "2021-02-23T07:27:42.498+0000",
"status": 400,
"error": "Bad Request",
"message": "Required request body is missing: public xx.xx.result.Result
xx.xx.getBy(java.lang.String) throws java.lang.Exception",
"path": "/xx/xx/getBy"
}
问题点:POST请求参数 @RequestBody String xxx
请求使用:http://xx/xx//getBy?xxNo=XZX20210223
正确使用:http://xx/xx//getBy json {"xxNo":"XZX20210223"}