将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>

知其然不知其所以然,慢慢研究

相关文章:

  • 2021-05-16
  • 2021-11-16
  • 2021-10-15
  • 2021-08-11
  • 2022-12-23
  • 2021-08-30
  • 2021-06-17
  • 2021-12-31
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2021-10-04
  • 2022-03-05
  • 2021-11-27
  • 2022-12-23
  • 2021-03-31
相关资源
相似解决方案