1、找到applications.yml,如下图

2、写入代码
server:
port: 9494
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/自己的数据库表名?serverTimezone=GMT%2b8
username: root
password: root
1、找到applications.yml,如下图
2、写入代码
server:
port: 9494
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/自己的数据库表名?serverTimezone=GMT%2b8
username: root
password: root