如何降低日志级别
400
类别: 
部署常见问题

修改application.yaml文件

1.将log-impl: "org.apache.ibatis.logging.stdout.StdOutImpl" 改为 log-impl: ""

mybatis-plus:
  mapper-locations: classpath*:mapper/**/*.xml
  configuration:
    log-impl: ""

2.将logging改为如下设置

logging:
  level:
    com.tigshop: warn
    org.springframework: warn
    org.apache.ibatis: warn
    com.zaxxer.hikari: warn
评论 0
/ 1000
0
0
收藏