-
-
<!--这是直接在创建springboot项目时直接勾选生成的-->
<!--jdbc-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<!--mysql-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
1. MySQL 8
yaml配置:
2. MySQL 5
yaml配置:
spring