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包,便可。spa

相關文章
相關標籤/搜索