当前位置:网站首页>You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property
You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property
2022-06-28 12:57:00 【闲言博客】
错误产生环境
SpringBoot项目连接mysql数据库时产生
错误描述
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.
错误原因
这是由于数据库和系统时区差异所造成的,在jdbc连接的url后面加上serverTimezone=GMT
解决办法
在jdbc连接的url后面加上?serverTimezone=GMT
添加前
jdbc:mysql://localhost:3306/springboot
添加后
jdbc:mysql://localhost:3306/springboot?serverTimezone=GMT
边栏推荐
- 移动Web实训DAY-2
- group_ Concat learning and configuration
- 词云的可视化设计教程
- 投资98万美元的Saas项目失败了
- async-validator.js数据校验器
- flutter 系列之:flutter 中常用的 GridView layout 详解
- Unity webgl mobile end removal warning
- Shareit a une force exceptionnelle et se connecte au top 7 de la liste mondiale des forces IAP
- pytorch主要模块
- 2022-06-28日报:LeCun最新论文:通往自主机器智能的道路
猜你喜欢

ASP. NET CORE Study03

《数字经济全景白皮书》消费金融数字化篇 重磅发布

Scratch travel photo album Electronic Society graphical programming scratch grade examination level 1 true questions and answers analysis June 2022

腾讯确认QQ大规模盗号,iPhone14无缘Type-C,第四大运营商5G正式放号,今日更多大新闻在此...

一款自动生成单元测试的 IDEA 插件,开发效率提升 70% 以上!

Evaluation of IP location query interface I

Matplotlib_ Study01

Tencent has confirmed that QQ has stolen numbers on a large scale, iphone14 has no chance of type-C, and 5g, the fourth largest operator, has officially released numbers. Today, more big news is here

基于SSM实现水果蔬菜商城管理系统

弹性盒子自动换行小Demo
随机推荐
Namespace and scope
企业源代码保密方案分享
The press conference of Tencent cloud Database & CSDN engineer's ability lightweight certification is coming
Microservice stability guarantee
Customize MySQL connection pool
ASP. NET CORE Study06
How to install SSL certificates in Microsoft Exchange 2010
Unity releases webgl and wakes up keyboard input on the mobile terminal inputfield
Online JSON to plaintext tool
pytorch模型
《数字经济全景白皮书》消费金融数字化篇 重磅发布
华泰证券手机app下载 怎么办理开户最安全
同花顺上怎么进行开户啊, 安全吗
腾讯确认QQ大规模盗号,iPhone14无缘Type-C,第四大运营商5G正式放号,今日更多大新闻在此...
I ² C. SMBus, pmbus relationships
4年用户数破亿,孙哥带领波场再创新高
ASP. NET CORE Study08
Manjaro easyconnecy error: libgtk-x11-2.0 so. 0: cannot open shared object file: No such file or directory
Jerry's wif interferes with Bluetooth [chapter]
async-validator.js數據校驗器