Home  >  Q&A  >  body text

java - mybatis查询的时间与mysql的时间不一致?


mysql中的createTime为 2016-12-15 13:19:57


mybatis中的查询语句


jdbc url

在articleVO的setCreateTime方法中打印出来时间为:

请问下可能是什么原因造成的呢?

阿神阿神2744 days ago892

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:49:15

    The time zone configuration is wrong.

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:49:15

    The serverTimerzone configured in jdbc.url may be inconsistent

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:49:15

    Look at the tostring method used in this sentence of syse? There are several ways to convert date to string. Did you use it wrong?

    reply
    0
  • Cancelreply