前言
今天学习使用Spring配置Druid数据源的时候,连接数据库配到如下问题:
谷歌搜索了一下,发现导致这个问题出现的原因很多,按照每个都进行了检查,发现仍然没有解决,最后,才发现是我配置文件有问题,下面详细解析一下。
先看一下有问题的配置文件吧:
这里用户名,密码,URL都是对的,并且都没有空格,并且在Navicat 下来连接Mysql 也是可以的,所以问题不是这些。真正错误的原因如下:
修改后的正确配置如下:
今天学习使用Spring配置Druid数据源的时候,连接数据库配到如下问题:
谷歌搜索了一下,发现导致这个问题出现的原因很多,按照每个都进行了检查,发现仍然没有解决,最后,才发现是我配置文件有问题,下面详细解析一下。
先看一下有问题的配置文件吧:
这里用户名,密码,URL都是对的,并且都没有空格,并且在Navicat 下来连接Mysql 也是可以的,所以问题不是这些。真正错误的原因如下:
修改后的正确配置如下:
背景今天在部署一个平台容器版的时候redis集群始终无法正常启动,报以下错误:Liveness probe failed: Could not connect to Redis at localhost:6379解决过程排除dns解析问题因为报localhost无法访问首先修改成127.0.0.1排除是dns解析的问题,改完后仍然报错,只不过localhost改成127.0.0.1了。
今天写SpringBoot项目犯了一个很低级的错误错误如图浏览器访问500上述问题说明未读取到连接的数据
mysql密码。...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M