java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized
生活随笔
收集整理的這篇文章主要介紹了
java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在application.yml中
spring:datasource:username: rootpassword:url: jdbc:mysql://127.0.0.1:3306/testdriver-class-name: com.mysql.cj.jdbc.Driver結果報錯
java.sql.SQLException: The server time zone value ‘�й���??��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
把url改下就行了
url: jdbc:mysql://localhost:3306/testuseUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC總結
以上是生活随笔為你收集整理的java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 和平精英电脑最低配置?
- 下一篇: 苹果查找找不到位置是什么原因