spring boot打印sql执行日志

yml格式:

logging:
  config: classpath:logback.xml
  level:
    com:
      sc:
        ishop:
          support:
            mapper: debug

其中com: sc: ishop: support:为mapper接口的包名,
如图所示
spring boot打印sql执行日志_第1张图片

你可能感兴趣的:(Mybatis,工作,spring,boot,mysql,mybatis,spring,boot)