在做负载均衡过程中,在多个服务器上部署了同样一套程序,数据库用的同一个,其中有两个服务器启动时正常,只要访问就报错如下: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.)
最终排查是因为服务器默认安装的是openJDK低版本(1.8.3xxxxx),而项目需要的是(jdk1.8.9xxxxx)