呐些過往 2016-03-22 08:57 采纳率: 5.9%
浏览 4950

Could not open JDBC Connection for transaction

org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; 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.)
Caused by:
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure

在linux系统下部署项目,启动的时候就报这个错,在网上看了很多资料,有说hosts问题,有说配置文件问题,还有说连接池有问题,看了这么多也不知道改什么,希望大神能够指点指点。

  • 写回答

2条回答

  • threenewbee 2016-03-22 09:36
    关注

    检查连接字符串,你的数据库的配置,比如是否开启防火墙端口例外,用户账户和权限,网络是否连通等。

    评论

报告相同问题?

悬赏问题

  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗