增加mybatisplus sql日志监控

This commit is contained in:
hupeng committed 2019-09-08 17:31:31 +08:00
1 parent 1296549d1d
commit 2bbbb35eac
20 files changed
+638 -5

No files matched your search

+9 -3
View File
@@ -50,10 +50,12 @@ mybatis-plus:
spring:
#DATABASE CONFIG
datasource:
driver-class-name: com.mysql.jdbc.Driver
#driver-class-name: com.mysql.jdbc.Driver
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
username: root
password: root
url: jdbc:mysql://localhost:3306/ruoyi?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=UTC
url: jdbc:p6spy:mysql://localhost:3306/ruoyi?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=UTC
#url: jdbc:mysql://localhost:3306/ruoyi?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=UTC
type: com.alibaba.druid.pool.DruidDataSource #这里是配置druid连接池,以下都是druid的配置信息
filters: stat,wall,log4j
maxActive: 20
@@ -101,4 +103,8 @@ spring:
basic-group:
base-package: com.battcn.controller.basic
system-group:
base-package: com.battcn.controller.system
base-package: com.battcn.controller.system
logging:
level:
com.ruoyi.app.modular: debug