线上报错:
{timestamp: "2023-01-17 14:29:14", status: 500, error: "Internal Server Error",…}
error: "Internal Server Error"
message: "status 500 reading ApiPlatformService#createQr(QRCodeVO); content:↵{"timestamp":"20230117 14:29:14844","status":500,"error":"Internal Server Error","message":"nested exception is org.apache.ibatis.exceptions.PersistenceException: \n### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure\n\nThe last packet successfully received from the server was 2 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.\n### The error may exist in URL [jar:file:/app.jar!/BOOT-INF/classes!/mapper/dict/SysDictMapper.xml]\n### The error may involve com.hyzk.platform.api.controller.dict.dao.SysDictMapper.get\n### The error occurred while executing a query\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure\n\nThe last packet successfully received from the server was 2 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.","path":"/file/createQcEqument"}"
path: "/incoming/confirm-receipt"
status: 500
timestamp: "2023-01-17 14:29:14"
摸不着头脑 不知道是因为啥
Java线上报错,mysql数据库
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
4条回答 默认 最新
- 於黾 2023-01-17 16:25关注
Failed to obtain JDBC Connection
数据库没有连上,检查字符串是否正确,用工具测试数据库到底能不能连上,开没开,防火墙拦没拦本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用
悬赏问题
- ¥15 android报错 brut.common.BrutException: could not exec (exit code = 1)
- ¥15 nginx反向代理获取ip,java获取真实ip
- ¥15 eda:门禁系统设计
- ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
- ¥15 376.1电表主站通信协议下发指令全被否认问题
- ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
- ¥15 复杂网络,变滞后传递熵,FDA
- ¥20 csv格式数据集预处理及模型选择
- ¥15 部分网页页面无法显示!
- ¥15 怎样解决power bi 中设置管理聚合,详细信息表和详细信息列显示灰色,而不能选择相应的内容呢?