解決方法:
一、將serverTimezone=UTC改為CTT
url: jdbc:mysql://localhost:3306/moviechoicesystem?serverTimezone=CTT&useUnicode=true&characterEncoding=utf-8&useSSL=false
二、使用thymeleaf遍歷的時候,格式化一下。
th:text="${#dates.format(mm.create_time,'yyyy-MM-dd HH:mm')}"
解決方法:
一、將serverTimezone=UTC改為CTT
url: jdbc:mysql://localhost:3306/moviechoicesystem?serverTimezone=CTT&useUnicode=true&characterEncoding=utf-8&useSSL=false
二、使用thymeleaf遍歷的時候,格式化一下。
th:text="${#dates.format(mm.create_time,'yyyy-MM-dd HH:mm')}"
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。