When a MySQL table exists with two field types that are timestamp, the problem often arises as follows:
caused By:java.sql.SQLException:Value ' 0000-00-00 00:00:00 ' can not be represented as Java.sql.Timestamp
At Com.mysql.jdbc.SQLError.createSQLException (sqlerror.java:1078)
At Com.mysql.jdbc.SQLError.createSQLException (sqlerror.java:989)
At Com.mysql.jdbc.SQLError.createSQLException (sqlerror.java:975)
At Com.mysql.jdbc.SQLError.createSQLException (sqlerror.java:920)
At Com.mysql.jdbc.ResultSetRow.getTimestampFast (resultsetrow.java:1102)
The workaround is: zerodatetimebehavior=converttonull
Similar: #MySQL
Hibernate.dialect=org.hibernate.dialect.mysqldialect
Validationquery.sqlserver=select 1
jdbc.url.jeecg=jdbc:mysql://127.0.0.1:3306/jeewx?useunicode=true&characterencoding=utf-8& Zerodatetimebehavior=converttonull
Troubleshooting JAVA Development FAQs