spring mvc 查询报错Cannot convert value '0000-00-00' from column 20 to TIMESTAMP

在连接数据库文件的地址后面添加上 zeroDateTimeBehavior=convertToNull

jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/test?useUnicode\=true&characterEncoding\=UTF-8&zeroDateTimeBehavior=convertToNull


参考地址 http://blog.csdn.net/stail111/article/details/5640109



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章