new construction in spring boot using mysql, com.mysql.jdbc.Driver marked red

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

Guess you like

Origin www.cnblogs.com/IsSshuai/p/11332499.html