在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相关推荐

  1. java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ 解决方案

    java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ 解决方案 参考文章: (1)java.sql.SQLException: ...

  2. 连接MySql出现异常解决:java.sql.SQLException: The server time zone value is unrecognized or represents。

    QUESTION: java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represent ...

  3. java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more

    ** java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents mo ...

  4. java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä'

    java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more ...

  5. JDBC编程可能遇到的错误:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or ..

    文章目录 1.错误提示: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 2.提示:Loading class com.mysql.jd ...

  6. java.sql.SQLException: The server time zone value '???ú±ê×??±??' is unrecognized or represents 解决方法

    转载自https://blog.csdn.net/weixin_37577564/article/details/80329775 在JDBC使用的时候有时候会出现java.sql.SQLExcept ...

  7. java.sql.SQLException: The server time zone value‘xxxxxxxx‘ is unrecognized

    报错笔记 原因 一.org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with ...

  8. java.sql.SQLException: The server time zone value �й���׼ʱ�� is unrecognized or represents ...

    使用springboot 整合mybatis项目启动控制台报错: java.sql.SQLException: The server time zone value '�й���׼ʱ��' is un ...

  9. java.sql.SQLException: The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represent.........

     springboot整合mybatis时运行异常: java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecogn ...

最新文章

  1. 企业金融云存储建设之路
  2. [心得分享] 我在 GitHub 上学习开源
  3. 拒绝平庸--浅谈WEB登录页面设计
  4. AcDream 1079 郭氏数
  5. android辅助功能模拟home键,Android launcher中模拟按home键的实现
  6. 知名投资机构董事总经理在培训中晕倒后去世,这个培训究竟是什么?
  7. 20165332第六周学习总结
  8. 按键精灵打怪学习-窗口绑定技能
  9. 深度学习-模型预测(论文笔记)
  10. matlab插值函数 外插,Matlab数据插值-内插、外插
  11. python爬取天天基金网_Python爬虫日记二:爬取天天基金网
  12. 易基因|一文看懂:ChIP实验和qPCR定量分析怎么做
  13. 关于idea无法使用搜狗输入法打出汉字的解决方案(转)
  14. linux下搭建DNS域名解析服务器
  15. 什么 ? 陪玩都月入过忘拉~这不得python采集一下
  16. python cmd环境输入python打开应用商店解决
  17. 计算机视觉(CV)机器学习(ML)顶会CVPR ICCV ECCV ICML ICLR NeurIPS文章学习链接汇总
  18. Kaggle: ImageNet Dog Breed Classification (Pytorch)
  19. Windows XP/Vista 开机启动设置项
  20. LAMMPS 中 molecule command 的分子模板

热门文章

  1. [Java基础]字符流读写数据的方式
  2. 使用单项循环链表实现字典操作(算法导论第十章10.2-5题)
  3. Redis数据结构以及对应存储策略
  4. word List 43
  5. 单片机课程设计数字心率计_如何选购合适的PH计
  6. 7-5 两个有序链表序列的合并 (20 分)
  7. JVM(4)——对象访问
  8. 2016-2017 ACM-ICPC CHINA-Final(7 / 12)
  9. AC Automaton
  10. Free tour II SPOJ - FTOUR2 点分治 + 树状数组