去除多余注解
配置 sql日志监听
This commit is contained in:
@@ -29,7 +29,7 @@ spring:
|
||||
properties:
|
||||
hibernate:
|
||||
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
|
||||
show_sql: true
|
||||
show_sql: false
|
||||
|
||||
|
||||
task:
|
||||
|
||||
32
eladmin-system/src/main/resources/spy.properties
Normal file
32
eladmin-system/src/main/resources/spy.properties
Normal file
@@ -0,0 +1,32 @@
|
||||
#??????????
|
||||
modulelist=com.baomidou.mybatisplus.extension.p6spy.MybatisPlusLogFactory,com.p6spy.engine.outage.P6OutageFactory
|
||||
#??????????
|
||||
logMessageFormat=com.baomidou.mybatisplus.extension.p6spy.P6SpyLogger
|
||||
#?????? ????
|
||||
#appender=com.baomidou.mybatisplus.extension.p6spy.StdoutLogger
|
||||
#??????? SLF4J ????
|
||||
#appender=com.p6spy.engine.spy.appender.Slf4JLogger
|
||||
#??????? file??
|
||||
appender=com.p6spy.engine.spy.appender.FileLogger
|
||||
#??????????
|
||||
logfile=sql.log
|
||||
#???? JDBC ???????????
|
||||
#deregisterdrivers=true
|
||||
#??????????????
|
||||
useprefix=true
|
||||
#?????????????????????
|
||||
excludecategories=info,debug,result,commit,resultset
|
||||
#?????????????
|
||||
dateformat=yyyy-MM-dd HH:mm:ss
|
||||
#??????????????
|
||||
databaseDialectTimestampFormat=yyyy-MM-dd HH:mm:ss
|
||||
#?? JDBC ??????
|
||||
#driverlist=org.h2.Driver
|
||||
#??????
|
||||
outagedetection=true
|
||||
#??????????????????
|
||||
outagedetectioninterval=2
|
||||
#?? SQL ????
|
||||
filter=true
|
||||
#?????? "SELECT 1" ? SQL ??
|
||||
exclude=SELECT 1
|
||||
Reference in New Issue
Block a user