From 5077b9353eb6328c4ce1d6fa42aa2df92cadffc9 Mon Sep 17 00:00:00 2001 From: datagear Date: Mon, 22 Oct 2018 15:17:39 +0800 Subject: [PATCH] =?UTF-8?q?[web]=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=94=B1WEB-INF/confg=E6=94=B9=E4=B8=BAsrc/main/resources?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E4=B8=8B=EF=BC=8C=E5=9B=A0=E4=B8=BA=E5=AE=83?= =?UTF-8?q?=E4=BB=AC=E9=83=BD=E4=B8=8D=E6=98=AF=E7=94=A8=E6=88=B7=E5=8F=AF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datagear-web/pom.xml | 20 +++---------------- .../resources/datagear-applicationContext.xml | 2 +- .../config => resources}/datagear.properties | 0 .../config => resources}/log4j.properties | 2 +- datagear-web/src/main/webapp/WEB-INF/web.xml | 2 +- 5 files changed, 6 insertions(+), 20 deletions(-) rename datagear-web/src/main/{webapp/WEB-INF/config => resources}/datagear.properties (100%) rename datagear-web/src/main/{webapp/WEB-INF/config => resources}/log4j.properties (86%) diff --git a/datagear-web/pom.xml b/datagear-web/pom.xml index dbdab0ac..a731a14a 100644 --- a/datagear-web/pom.xml +++ b/datagear-web/pom.xml @@ -14,7 +14,7 @@ war - DEBUG, A1 + INFO, A1 @@ -156,8 +156,7 @@ maven-antrun-plugin 1.4 - - + updateLog4jLevelToError prepare-package @@ -166,24 +165,11 @@ - - - resetLog4jLevelToDebug - package - - run - - - - - - - diff --git a/datagear-web/src/main/resources/datagear-applicationContext.xml b/datagear-web/src/main/resources/datagear-applicationContext.xml index 6adacfc6..878efd0c 100644 --- a/datagear-web/src/main/resources/datagear-applicationContext.xml +++ b/datagear-web/src/main/resources/datagear-applicationContext.xml @@ -15,7 +15,7 @@ - /WEB-INF/config/datagear.properties + classpath:datagear.properties diff --git a/datagear-web/src/main/webapp/WEB-INF/config/datagear.properties b/datagear-web/src/main/resources/datagear.properties similarity index 100% rename from datagear-web/src/main/webapp/WEB-INF/config/datagear.properties rename to datagear-web/src/main/resources/datagear.properties diff --git a/datagear-web/src/main/webapp/WEB-INF/config/log4j.properties b/datagear-web/src/main/resources/log4j.properties similarity index 86% rename from datagear-web/src/main/webapp/WEB-INF/config/log4j.properties rename to datagear-web/src/main/resources/log4j.properties index 0670169a..c850b1ee 100644 --- a/datagear-web/src/main/webapp/WEB-INF/config/log4j.properties +++ b/datagear-web/src/main/resources/log4j.properties @@ -10,7 +10,7 @@ log4j.appender.A0.layout.ConversionPattern=[%d{yyyy-MM-dd HH:mm:ss,SSS}] [%p] %- #==============appender 1========================== log4j.appender.A1=org.apache.log4j.RollingFileAppender -log4j.appender.A1.File=logs/datagear.log +log4j.appender.A1.File=logs/datagear/datagear.log log4j.appender.A1.MaxFileSize=5120KB log4j.appender.A1.MaxBackupIndex=20 log4j.appender.A1.layout=org.apache.log4j.PatternLayout diff --git a/datagear-web/src/main/webapp/WEB-INF/web.xml b/datagear-web/src/main/webapp/WEB-INF/web.xml index 86bc8a18..b9b57ae7 100644 --- a/datagear-web/src/main/webapp/WEB-INF/web.xml +++ b/datagear-web/src/main/webapp/WEB-INF/web.xml @@ -13,7 +13,7 @@ log4jConfigLocation - /WEB-INF/config/log4j.properties + classpath:log4j.properties org.springframework.web.util.Log4jConfigListener