线上报错:
{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 Attention is all you need 的代码运行
- ¥15 一个服务器已经有一个系统了如果用usb再装一个系统,原来的系统会被覆盖掉吗
- ¥15 使用esm_msa1_t12_100M_UR50S蛋白质语言模型进行零样本预测时,终端显示出了sequence handled的进度条,但是并不出结果就自动终止回到命令提示行了是怎么回事:
- ¥15 前置放大电路与功率放大电路相连放大倍数出现问题
- ¥30 关于<main>标签页面跳转的问题
- ¥80 部署运行web自动化项目
- ¥15 腾讯云如何建立同一个项目中物模型之间的联系
- ¥30 VMware 云桌面水印如何添加
- ¥15 用ns3仿真出5G核心网网元
- ¥15 matlab答疑 关于海上风电的爬坡事件检测