jdbcType="DATE"和jdbcType=" TIMESTAMP"的区别

原文: https://www.cnblogs.com/fswhq/p/jdbcType.html

 

当传入null值时,jdbcType 会防止null空指针异常报错

Mybatis 中jdbcType="DATE" ,日期精确到年月日 剩余分秒 填0补齐

jdbcType=" TIMESTAMP",日期精确到分秒

posted @ 2019-07-02 07:22  Roy-Xin  阅读(5703)  评论(0编辑  收藏  举报