Caused by: com.mysql.cj.exceptions.DataReadException: Zero date value prohibited

3.11K viewsSqlJava
1

Caused by: com.mysql.cj.exceptions.DataReadException: Zero date value prohibitedCaused by: com.mysql.cj.exceptions.DataReadException: Zero date value prohibited

Changed status to publish
Add a Comment
3

Please add end of the JDBC URL  “?zeroDateTimeBehavior=convertToNull” like as below

jdbc:mysql://yourdbserverip:3306/yourdatabasename?zeroDateTimeBehavior=convertToNull

 

Changed status to publish
Add a Comment
Write your answer.