mybatis中 jdbcType 时间类型mybatis
当jdbcType = DATE 时, 只传入了 年月日.net
jdbcType = TIMESTAMP , 年月日+ 时分秒xml
当在mybatis的 xml 里面 配置 结果集或者是 插入更新的时候 blog
指定 jdbcType 的时间类型的时候 都最好使用 jdbcType="TIMESTAMP" 配置
由于这样 插入 和更新 和 获取 数据的时候, 时间类型,就能够插入和更新 或者数据的时候,jdbc
就能够获取到 年月日 时分秒的 ,若是都是 使用 jdbcType = DATE 时, 只能够插入,更新,或者 年月日的数据
能够查看 :https://my.oschina.net/u/593517/blog/487201db