程序员王小瑞 2023-01-17 08:18 采纳率: 19.2%
浏览 39
已结题

Java线上报错,mysql数据库

线上报错:
{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"
摸不着头脑 不知道是因为啥

  • 写回答

4条回答 默认 最新

  • 於黾 2023-01-17 08:25
    关注

    Failed to obtain JDBC Connection
    数据库没有连上,检查字符串是否正确,用工具测试数据库到底能不能连上,开没开,防火墙拦没拦

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)
编辑
预览

报告相同问题?

问题事件

  • 系统已结题 1月24日
  • 已采纳回答 1月17日
  • 创建了问题 1月17日
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部