The pom.xml in
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope><!--这一句去掉就行了-->
</dependency>
<dependency>
<the groupId> org.springframework.boot </ the groupId>
<the artifactId> Boot-Starter-Spring-JDBC </ the artifactId>
</ dependency>
know not why, slowly Study