标签:connector driver group runtime framework run pen -- jdb
将pom.xml中的
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope><!--这一句去掉就行了-->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
知其然不知其所以然,慢慢研究
spring boot新建工程中使用mysql,com.mysql.jdbc.Driver标红
标签:connector driver group runtime framework run pen -- jdb
原文地址:https://www.cnblogs.com/IsSshuai/p/11332499.html