ahjsyangliang

方法一、在application.yml添加配置

mybatis-plus:
  configuration:
    #默认不显示SQL日志
#    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

方法二、 mapper增加日志等级为debug

logging:
 level:
  com.xxx.mapper: debug

mybaits相关配置

mybatis-plus:
  mapper-locations: classpath*:cn/demo/**/mapping/*.xml, classpath:/META-INF/modeler-mybatis-mappings/*.xml
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: true
    lazy-loading-enabled: true
    multiple-result-sets-enabled: true
    #默认不显示SQL日志
#    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  global-config:
    banner: false
    db-config:
      id-type: assign_id
      table-underline: true
    enable-sql-runner: true
  configuration-properties:
    prefix:
    blobType: BLOB
    boolValue: TRUE

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-02-10
  • 2022-01-27
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2022-02-08
  • 2021-05-25
  • 2021-12-12
  • 2021-07-07
相关资源
相似解决方案