Cannot create PoolableConnectionFactory (Could not create connection to database server.
1.版本改到最高
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.11</version>
</dependency>
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