Mybatis-Plus的日志配置

2022-04-14  本文已影响0人  InGramViking

输出到控制台

logging:
  level:
    com.baomidou.mybatisplus.samples.quickstart: debug
mybatis-plus:
  configuration:
    # 输出到控制台
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    defaultEnumTypeHandler: com.acegear.datasource.handlers.EnumHandler
  global-config:
    banner: false
  typeEnumsPackage: com.acegear.cms.orm.enums

关闭sql日志打印

logging:
  level:
    com.baomidou.mybatisplus.samples.quickstart: info
mybatis-plus:
  configuration:
    # 关闭日志打印
    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  global-config:
    banner: false

logging.level设置日志级别:
https://www.cnblogs.com/yanguobin/p/11487667.html

上一篇下一篇

猜你喜欢

热点阅读