java.lang.IllegalArgumentException: MONTH

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column 'birthday' from result set. Cause: java.sql.SQLException: MONTH
; MONTH; nested exception is java.sql.SQLException: MONTH] with root cause

这个问题出在数据上,数据不规范。比如年龄和生日,可能出现负数,例如age:-1234  birthday:-2440-00-00 导致。

 

posted @ 2022-05-20 21:24  与你相遇  阅读(339)  评论(0)    收藏  举报