Could not get JDBC Connection 这个是说数据库异常,请检查下数据库的配置。
制作的系统点击登录提示遇到了未知的错误,并且页面显示大段红色代码
nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.) ### The error may exist in file [D:\work_idea\HospitalizationManSys\out\artifacts\HospitalizationManSys_war_exploded\WEB-INF\classes\com\qut\mapper\UserMapper.xml] ### The error may involve com.qut.mapper.UserMapper.findUserById ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
- 点赞
- 写回答
- 关注问题
- 收藏
- 复制链接分享
- 邀请回答
2条回答
为你推荐
- Java语言怎么在控制台输出长字符串的时候能够自动换行,并且每行的两端对齐,比较美观
- 开发语言
- 1个回答
- js变量赋值多行文本问题
- android studio的textview每行右边总留有空格
- android-studio
- 2个回答
- 在golang中将html字符串呈现为普通字符串
- 1个回答
- 前端script怎么简写下拉框页面
- 非常大的HTML和Javascript到PHP变量
- php
- 4个回答
- c++如何一个字一个字输出?
- c++
- 2个回答
- 请问如何用正则表达式选出一大段文字中的特定内容?
- java
- 1个回答
- emeditor 一次提取多行
- 正则表达式
- 2个回答
- 谁能真正整明白java volatile 关键字? 一知半解的莫入!
- 0个回答
- myEclipse 不管如何修改后台代码 调试都是原来的值
- 0个回答
- javascript语法问题
- javascript
- 0个回答
- 请问网页代码中的一些注释会不会影响SEO,对关键字优化有没有影响等等
- 搜索引擎
- 5个回答
- 查询一段文字里面含有数据库关键字字段中的哪些关键字????
- python安装matplotlib报错
- 1个回答
- 求大神:html 使用zoom缩小后页面出现空白部分
- html5
- 1个回答
- java,新手,向大家请教一下这段代码中注释部分怎么正确理解?
- 5个回答
- shell 大文件字符串替换
- 5个回答