Use Spring Initializer Spring Boot quickly create a web project
but Spring boot drive version of the mysql database to help our auto-configuration is 5.1.46
Because of the following problems occur at startup:
java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.
Access to online information that need to modify the mysql database-driven version SpringBoot to the latest version, modify the steps are:
find pom.xml file, modify the original:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
To:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.18</version>
</dependency>