MyBatis-Plus Open and close SQL log printing

2023-01-01   ES  

Open log printing

application.yml file opening method:

mybatis-plus: 
   Mapper-Locations: ClassPath: Mapper/*. XML 
   Configuration: 
     #Close log printing, use this impl: org.apache.ibatis.logging.nology.nology 
     Log-IMPL: $ {mybatis_plus_log_impl: org.apache.ibatis.logging.stdoutimpl}

application.properties files can be changed by yourself.

Close log printing

mybatis-plus:
  mapper-locations: classpath:mapper/*.xml
  configuration:
    log-impl:  ${MYBATIS_PLUS_LOG_IMPL:org.apache.ibatis.logging.nologging.NoLoggingImpl}

source

Random Posts

XML Tools attribute detailed explanation

VC ++ getModuleFilename, SplitPath and Makepath usage

Android error report summary (continuous update)

MAP collection EntrySet method

object makes the operation invalid