java - springboot returns wrong time
给我你的怀抱
给我你的怀抱 2017-05-17 10:05:06
0
1
681

Configure the time zone according to what is said on the Internet. I have tried both upper and lower case. The time printed in the second picture is consistent with the database and is correct. However, after executing return, the time becomes eight. Hours, the database shows nine o'clock, and the response to me is five o'clock, and the database returns 1970-1-1 8:00 instead of 0 but 28800000

给我你的怀抱
给我你的怀抱

reply all (1)
刘奇

The database time zone, Driver time zone, and Jackson serialization time zone must be consistent. If the Driver and database time zones are consistent without special settings, then your Jackson time zone configuration may be 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!