Value '0000-00-00' can not be represented as java.sql.Date 에러(Error)

servlet-context.xml 파일에


jdbc:mysql://(서버URL):3306/(DB스키마명)?autoReconnect=true&characterEncoding=utf8&useUnicode=true&zeroDateTimeBehavior=convertToNull

이 부분을 추가시켜주니까 정상적으로 작동된다.


데이터가 0000-00-00으로 들어가있으면 String은 불러올 수 없다고 한다.

그래서 가급적 데이터는 0000-00-00으로 넣는건 비추천한다고 한다.