image.png

application.yaml

| # 服务端口
server:
port: 8001

服务名
spring:
application:
name: service-edu

环境设置:dev、test、prod
profiles:
active: dev

返回json的全局时间格式
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time: GMT+8

mysql数据库连接
datasource:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: jdbc:p6spy:mysql://localhost:3306/guli?serverTimezone=GMT%2B8
username: root
password: 941941

mybatis日志
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |

| —- |

更改后:
image.png