1、创建配置文件,application.yaml
2、在配置文件中配置:
# 服务端口server:port: 8001# 服务名spring:application:name: service-edu# 环境设置:dev、test、prodprofiles:active: dev# mysql数据库连接datasource:driver-class-name: com.mysql.cj.jdbc.Driverurl: jdbc:mysql://localhost:3306/guli?serverTimezone=GMT%2B8username: rootpassword: 941941#mybatis日志mybatis-plus:configuration:log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
