From ee154cac0acaa99cc7ad528a85d0da6c79d82a14 Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Sat, 5 Sep 2020 23:12:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=A5=E5=BF=97=E7=BA=A7?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yshop-admin/src/main/resources/logback.xml | 6 +++--- yshop-app/pom.xml | 6 ------ .../src/main/java/co/yixiang/ApiRun.java | 2 +- .../src/main/resources/config/application.yml | 5 +++-- yshop-app/src/main/resources/logback.xml | 4 ++-- yshop-app/src/main/resources/spy.properties | 21 ------------------- 6 files changed, 9 insertions(+), 35 deletions(-) delete mode 100644 yshop-app/src/main/resources/spy.properties diff --git a/yshop-admin/src/main/resources/logback.xml b/yshop-admin/src/main/resources/logback.xml index ba3e1ee2..2fd01c65 100644 --- a/yshop-admin/src/main/resources/logback.xml +++ b/yshop-admin/src/main/resources/logback.xml @@ -2,8 +2,8 @@ yshop - - + + @@ -69,7 +69,7 @@ - + diff --git a/yshop-app/pom.xml b/yshop-app/pom.xml index a7a7cd95..8b2f0cc8 100644 --- a/yshop-app/pom.xml +++ b/yshop-app/pom.xml @@ -54,12 +54,6 @@ velocity-engine-core 2.0 - - - p6spy - p6spy - 3.8.1 - com.google.zxing core diff --git a/yshop-app/src/main/java/co/yixiang/ApiRun.java b/yshop-app/src/main/java/co/yixiang/ApiRun.java index add8e748..36cb94df 100644 --- a/yshop-app/src/main/java/co/yixiang/ApiRun.java +++ b/yshop-app/src/main/java/co/yixiang/ApiRun.java @@ -18,7 +18,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; @EnableAsync @EnableTransactionManagement @EnableCaching -@MapperScan({"co.yixiang.modules.*.service.mapper"}) +@MapperScan(basePackages ={"co.yixiang.modules.*.service.mapper", "co.yixiang.config"}) @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class , WxMaAutoConfiguration.class}) public class ApiRun { diff --git a/yshop-app/src/main/resources/config/application.yml b/yshop-app/src/main/resources/config/application.yml index 4724d718..0dd3e915 100644 --- a/yshop-app/src/main/resources/config/application.yml +++ b/yshop-app/src/main/resources/config/application.yml @@ -55,7 +55,6 @@ mybatis-plus: check-config-location: true configuration: map-underscore-to-camel-case: true - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl global-config: db-config: id-type: auto @@ -65,13 +64,15 @@ mybatis-plus: logging: level: - org.springframework.web: INFO + co.yixiang: DEBUG + org.springframework.web: wanning com.github.binarywang.demo.wx.mp: DEBUG me.chanjar.weixin: DEBUG + yshop: #相关配置 version: 3.0 diff --git a/yshop-app/src/main/resources/logback.xml b/yshop-app/src/main/resources/logback.xml index e549966e..7a2910e5 100644 --- a/yshop-app/src/main/resources/logback.xml +++ b/yshop-app/src/main/resources/logback.xml @@ -2,7 +2,7 @@ yshop - + @@ -68,7 +68,7 @@ - + diff --git a/yshop-app/src/main/resources/spy.properties b/yshop-app/src/main/resources/spy.properties deleted file mode 100644 index d7430d17..00000000 --- a/yshop-app/src/main/resources/spy.properties +++ /dev/null @@ -1,21 +0,0 @@ -module.log=com.p6spy.engine.logging.P6LogFactory,com.p6spy.engine.outage.P6OutageFactory -# 自定义日志打印 -logMessageFormat=com.baomidou.mybatisplus.extension.p6spy.P6SpyLogger -#日志输出到控制台 -appender=com.baomidou.mybatisplus.extension.p6spy.StdoutLogger -# 使用日志系统记录 sql -#appender=com.p6spy.engine.spy.appender.Slf4JLogger -# 设置 p6spy driver 代理 -deregisterdrivers=true -# 取消JDBC URL前缀 -useprefix=true -# 配置记录 Log 例外,可去掉的结果集有error,info,batch,debug,statement,commit,rollback,result,resultset. -excludecategories=info,debug,result,batch,resultset -# 日期格式 -dateformat=yyyy-MM-dd HH:mm:ss -# 实际驱动可多个 -#driverlist=org.h2.Driver -# 是否开启慢SQL记录 -outagedetection=true -# 慢SQL记录标准 2 秒 -outagedetectioninterval=2