HTTP Status 400 – Bad Request Type Status Report Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
经过调试发现是日期注入的问题
当去掉日期这个字段,接口正常运行
原因是,JSON格式,不支持时分秒的转换
解决方案一:
把时分秒删了就可以了
解决方案二:在实体类上面加上@JsonFormat注解,这样子在测试的时候就可以加上时分秒了
HTTP Status 400 – Bad Request Type Status Report Description The server cannot or will not process
于 2024-06-07 09:06:31 首次发布