SQLException: The server time zone value ‘?й???????’ is unrecognized
mysql-connector-java这个jar包是最新的时候
【SQLException: The server time zone value ‘?й???????’ is unrecognized】在配置datasource.url时不能简单的这样配:
spring.datasource.url=jdbc:mysql://localhost:3306/chat
需要加上一些必要的后缀信息(改成下面的配置就可以了): 主要是时区相关的配置
spring.datasource.url=jdbc:mysql://localhost:3306/chat?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
推荐阅读
- gitlab|gitlab 通过备份还原 admin/runner 500 Internal Server Error
- 【Thesewt】蒙昧(续)
- The|The Help week 3
- The|The ideal servant
- 分析COMP122 The Caesar Cipher
- SqlServer|sql server的UPDLOCK、HOLDLOCK试验
- 清晨朗读327(How|清晨朗读327:How Successful People Network with Each Other)
- 【天馬座|【天馬座 ? 翼ノ幻想】~《The Pegasus Fantasy》
- python之SimpleHTTPServer用法
- 2019-07-08|2019-07-08 windows server