mysql数据库The server time zone value '�й���׼ʱ��' is unrecogni等报错解决_failed to initialize pool: the server time zone va-程序员宅基地

技术标签: MySql学习  SpringBoot学习  The server time zone value '�й���׼ʱ  MyBatis学习  Mysql报错解决  

MySQL连接报错

spring.datasource.url连接信息出问题。

报错信息

{
  "timestamp": "2019-11-12T11:07:30.870+0000",
  "status": 500,
  "error": "Internal Server Error",
  "message": "nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.\r\n### The error may exist in file [E:\\eclipse\\workspace\\cms_jd1911\\target\\classes\\mapper\\UserMapper.xml]\r\n### The error may involve com.briup.dao.UserMapper.selectByExample\r\n### The error occurred while executing a query\r\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.",
  "trace": "org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.\r\n### The error may exist in file [E:\\eclipse\\workspace\\cms_jd1911\\target\\classes\\mapper\\UserMapper.xml]\r\n### The error may involve com.briup.dao.UserMapper.selectByExample\r\n### The error occurred while executing a query\r\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.\r\n\tat org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)\r\n\tat org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)\r\n\tat com.sun.proxy.$Proxy75.selectList(Unknown Source)\r\n\tat org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223)\r\n\tat org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:147)\r\n\tat org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:80)\r\n\tat org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:93)\r\n\tat com.sun.proxy.$Proxy76.selectByExample(Unknown Source)\r\n\tat com.briup.service.impl.UserImpl.findAll(UserImpl.java:30)\r\n\tat com.briup.web.controller.TestController.findAll(TestController.java:28)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_41306364/article/details/103036491

智能推荐

一觉醒来2T硬盘数据化为乌有,背后或是两名黑客在竞争式入侵-程序员宅基地

文章浏览阅读1.3w次,点赞153次,收藏125次。博雯 发自 凹非寺量子位 报道 | 公众号 QbitAI一觉醒来,几个T的硬盘数据化为乌有。不说暗无天日吧,也至少是惨绝人寰了。毫不夸张的说,上周四的6月24日,西部数据硬盘的My Boo...

html中页面超出浏览器滚动条,html页面内容超出后显示水平滚动条的问题_html/css_WEB-ITnose...-程序员宅基地

文章浏览阅读1.5k次。这个问题已经遇到好几次,解决起来也熟练了很多。出现这种问题一般都是html或页面中的某一内部元素宽度超了。下面总结我遇到的几种情况:1、某一内部元素width设为100%,然而它还有border的宽度,border的宽度不包含在width中,所以结果超了。2、span行内元素,由于它是行内元素,不设display:block之类,宽度设定对它没用,当初弄的时候没有意识到这个问题,结果在谷歌浏览器没..._html页面設置超出100%出現滾動條

【EXCEL绘制地图】获取地图图标信息时遇到问题。请确保处于联机状态,然后重试_获取地图图表信息时遇到问题,请确保处于联机状态-程序员宅基地

文章浏览阅读3.3k次。【EXCEL绘制地图】获取地图图标信息时遇到问题。请确保处于联机状态,然后重试问题说明:如题,在绘制全球数据地图时报错,但是中国地图不会报错。解决方案:将excel上的office账户退出即可参考网站:为什么我的3D地图无法使用..._获取地图图表信息时遇到问题,请确保处于联机状态

hdu5391威尔逊定理-程序员宅基地

文章浏览阅读1.5k次。威尔逊定理在初等数论中,威尔逊定理给出了判定一个自然数是否为素数的充分必要条件。即:当且仅当p为素数时:( p -1 )! ≡ -1 ( mod p ),但是由于阶乘是呈爆炸增长的,其结论对于实际操作意义不大。hdu5391用到了这一数论定理。Zball in Tina TownTime Limit: 3000/1500 MS (Java/Others) Me_hdu5391

ALGO-115_蓝桥杯_算法训练_和为T_蓝桥杯 队列 511-程序员宅基地

文章浏览阅读344次。问题描述  从一个大小为n的整数集中选取一些元素,使得它们的和等于给定的值T。每个元素限选一次,不能一个都不选。输入格式  第一行一个正整数n,表示整数集内元素的个数。  第二行n个整数,用空格隔开。  第三行一个整数T,表示要达到的和。输出格式  输出有若干行,每行输出一组解,即所选取的数字,按照输入中的顺序排列。  若有多组解,优先输出不包含第n个整数的;若都包含或都不包含,优先输出不包含第n..._蓝桥杯 队列 511

基于Vue.js的2048小游戏的设计与实现_用vue2048游戏-程序员宅基地

文章浏览阅读2.6k次,点赞6次,收藏13次。基于Vue.js的2048小游戏的实现前言一、pandas是什么?二、使用步骤1.引入库2.读入数据总结前言提示:这里可以添加本文要记录的大概内容:例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。提示:以下是本篇文章正文内容,下面案例可供参考一、pandas是什么?示例:pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。二、使用步骤1.引入库代码如下(示例):import nump_用vue2048游戏

随便推点

[20191125]探究等待事件的本源.txt_dsh_wait_chain-程序员宅基地

文章浏览阅读207次。[20191125]探究等待事件的本源.txt--//当工作中遇到oracle的性能问题时,查看awr报表提供很好的解决问题途径.但是有时候很容易想当然.--//比如以前我一看到 log file sync等待事件就很主观的认为redo 磁盘IO不行,实际上真实的情况可能有许多原因.--//比如提交进程太多,cpu调度不过来.总之需要wait chains确定问题的本源.--//上午看了大师Tanel Poder的dash_wait_chains.sql与ash_wait_chains.sql脚本..._dsh_wait_chain

Suricata-流关键字_flowbits set , name-程序员宅基地

文章浏览阅读1.3k次。Thank Zhihao Tao for your hard work. The document spent countless nights and weekends, using his hard work to make it convenient for everyone.If you have any questions, please send a email to [email protected]文章目录1. `flowbits`1.1 `flowbits`安装1.2 ._flowbits set , name

linux 中的 nohup 命令(设置后台进程): nohup: ignoring input and appending output to ‘nohup.out’_nohup : jgnoring-程序员宅基地

文章浏览阅读5k次。https://blog.csdn.net/jiangyu1013/article/details/81476184_nohup : jgnoring

好文分享-php学习之路_php高效学习之路-程序员宅基地

文章浏览阅读333次。感谢来源:segmentfault 作者:韩天峰(matyhtf)PHP 从诞生到现在已经有 20 多年历史,从 Web 时代兴起到移动互联网退潮,互联网领域各种编程语言和技术层出不穷, Node.js 、 GO 、 Python 不断地在挑战 PHP 的地位。这些技术的推动者非常热衷于唱衰 PHP , PHP 语言的未来在哪里?PHP 程序员当如何应对未来的变革?  作为_php高效学习之路

Wi-Fi理论基础概述_indoor信道-程序员宅基地

文章浏览阅读4.1k次,点赞6次,收藏48次。 一 . 什么是Wi-Fi? Wi-Fi(Wireless Fidelity),在中文里又称作“行动热点”, 是Wi-Fi联盟(Wi-Fi Alliance,缩写为WFA)的商标,Wi-Fi联盟限制使用Wi-Fi认证这一术语来成功完成互操作性认证测试。严格得说,Wi-Fi是一个认证的名称,该认证用于测试无线网络设备是否符合IEEE 802.11系列协议的规范。也常有人把Wi-Fi当做I..._indoor信道

html页面正则表达式 替换空格,js正则表达式替换字符串两端的空格_逗号或其它任何符号...-程序员宅基地

文章浏览阅读744次。js替换字符串两端的空格,逗号,或其它任何的符号其实是很简单的,但为什么要在这儿讲呢?有一个问题是,如果字符串两端是一个或多个逗号,有可能只有一端有逗号,这种情况该怎么用正则表达式来解决呢?下面我列举几种情况,例如将下面这些字符的两端符号去除掉,该怎么搞定?情况一:1:“hello ” //右边一个空格2:“ hello ” //左右两边都有一个空格3:“ hello” //..._js 正则匹配空格,逗号,替换

推荐文章

热门文章

相关标签