SpringMVC格式转化错误之HTTP Status [400] – [Bad Request]
SpringMVC中,如果直接为Date类型的属性赋值,服务器有可能会报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).
报错信息如上,如果使用了@DateTimeFormat(pattern="yyyy-MM-dd")注解依然报错的话,一般情况是jar包缺失导致,点击这里下载相关jar包,即可。