Browse Source

SQL打印

lgs 11 months ago
parent
commit
85cdd96137
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/resources/application.yml

+ 3 - 1
src/main/resources/application.yml

@@ -56,7 +56,7 @@ spring:
 mybatis-plus:
   mapper-locations: classpath:mapper/*.xml
   configuration:
-#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
     map-underscore-to-camel-case: true
   type-aliases-package: com.kexun.entity
   type-handlers-package: com.kexun.typehandler
@@ -70,6 +70,8 @@ pagehelperhelper-dialect: mysql
 ##日志配置
 logging:
   config: classpath:log4j.properties
+  level:
+    com.baomidou.mybatisplus.core.mapper: debug
 
 config:
   fileupload: