2019-03-20 17:30:16.264 INFO 15528 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
Tue Sep 25 16:16:16 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2018-09-25 16:16:17.403 ERROR 15528 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization.java
因爲springboot自帶 mysql-connector-java版本太高,致使鏈接失敗,最終致使鏈接池啓動失敗。
下降mysql-connector-java的版本。mysql
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.40</version> <scope>runtime</scope> </dependency>
useSSL=false 處出錯,改成useSSL=truespring
從新啓動數據庫sql