解决方法:
一、将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删除。