mybatis-plus 开启sql打印

方法一:

mybatis-plus:
  configuration:
        log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql日志

 

方法二:

logging:
  level:
    com.chz.mapper: debug