java - mybatis查询的时间与mysql的时间不一致?
阿神
阿神 2017-04-18 10:47:15
0
3
880


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


mybatis中的查询语句


jdbc url

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

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

阿神
阿神

闭关修行中......

reply all(3)
洪涛

The time zone configuration is wrong.

黄舟

The serverTimerzone configured in jdbc.url may be inconsistent

大家讲道理

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?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!