Cannot create PoolableConnectionFactory (Could not create connection to database server.

1.版本改到最高


mysql
mysql-connector-java
8.0.11

2.将jdbc.properties

driver=com.mysql.jdbc.Driver

url=jdbc:mysql://localhost:3306/waiter

改为

driver=com.mysql.cj.jdbc.Driver
url=jdbc:mysql://localhost:3306/waiter?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC

 

转载于:https://www.cnblogs.com/523823-wu/p/10621955.html

你可能感兴趣的:(Cannot create PoolableConnectionFactory (Could not create connection to database server.)