From f08cd6a6ce3a44b9ebf43fe3d7ad2e99531044b7 Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Fri, 10 Mar 2017 17:18:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E6=89=A7=E8=A1=8C=E5=99=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF=EF=BC=8C=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=BB=9F=E4=B8=80=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ => spring}/applicationcontext-base.xml | 40 ++++----- .../applicationcontext-xxl-job-admin.xml | 12 +-- .../{ => spring}/springmvc-context.xml | 88 +++++++++---------- xxl-job-admin/src/main/webapp/WEB-INF/web.xml | 4 +- .../resources/applicationcontext-xxl-job.xml | 32 ++++--- .../src/main/resources/jdbc.properties | 4 - .../resources/xxl-job-executor.properties | 13 +++ .../src/main/webapp/WEB-INF/web.xml | 13 --- 8 files changed, 104 insertions(+), 102 deletions(-) rename xxl-job-admin/src/main/resources/{ => spring}/applicationcontext-base.xml (97%) rename xxl-job-admin/src/main/resources/{ => spring}/applicationcontext-xxl-job-admin.xml (92%) rename xxl-job-admin/src/main/resources/{ => spring}/springmvc-context.xml (97%) delete mode 100644 xxl-job-executor-example/src/main/resources/jdbc.properties create mode 100644 xxl-job-executor-example/src/main/resources/xxl-job-executor.properties diff --git a/xxl-job-admin/src/main/resources/applicationcontext-base.xml b/xxl-job-admin/src/main/resources/spring/applicationcontext-base.xml similarity index 97% rename from xxl-job-admin/src/main/resources/applicationcontext-base.xml rename to xxl-job-admin/src/main/resources/spring/applicationcontext-base.xml index 73e69b57..0e34f959 100644 --- a/xxl-job-admin/src/main/resources/applicationcontext-base.xml +++ b/xxl-job-admin/src/main/resources/spring/applicationcontext-base.xml @@ -1,21 +1,21 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xxl-job-admin/src/main/resources/applicationcontext-xxl-job-admin.xml b/xxl-job-admin/src/main/resources/spring/applicationcontext-xxl-job-admin.xml similarity index 92% rename from xxl-job-admin/src/main/resources/applicationcontext-xxl-job-admin.xml rename to xxl-job-admin/src/main/resources/spring/applicationcontext-xxl-job-admin.xml index 20e169ee..84732967 100644 --- a/xxl-job-admin/src/main/resources/applicationcontext-xxl-job-admin.xml +++ b/xxl-job-admin/src/main/resources/spring/applicationcontext-xxl-job-admin.xml @@ -19,8 +19,9 @@ - - + + + @@ -44,7 +45,8 @@ - + + @@ -68,7 +70,8 @@ - + + @@ -77,7 +80,6 @@ - diff --git a/xxl-job-admin/src/main/resources/springmvc-context.xml b/xxl-job-admin/src/main/resources/spring/springmvc-context.xml similarity index 97% rename from xxl-job-admin/src/main/resources/springmvc-context.xml rename to xxl-job-admin/src/main/resources/spring/springmvc-context.xml index b4f1ee15..566cafd2 100644 --- a/xxl-job-admin/src/main/resources/springmvc-context.xml +++ b/xxl-job-admin/src/main/resources/spring/springmvc-context.xml @@ -1,45 +1,45 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xxl-job-admin/src/main/webapp/WEB-INF/web.xml b/xxl-job-admin/src/main/webapp/WEB-INF/web.xml index 9e5c87b0..4d683326 100644 --- a/xxl-job-admin/src/main/webapp/WEB-INF/web.xml +++ b/xxl-job-admin/src/main/webapp/WEB-INF/web.xml @@ -11,7 +11,7 @@ contextConfigLocation - classpath*:applicationcontext-*.xml + classpath*:spring/applicationcontext-*.xml @@ -43,7 +43,7 @@ org.springframework.web.servlet.DispatcherServlet contextConfigLocation - classpath*:springmvc-context.xml + classpath*:spring/springmvc-context.xml 1 diff --git a/xxl-job-executor-example/src/main/resources/applicationcontext-xxl-job.xml b/xxl-job-executor-example/src/main/resources/applicationcontext-xxl-job.xml index 4ac7b58c..3c2beee0 100644 --- a/xxl-job-executor-example/src/main/resources/applicationcontext-xxl-job.xml +++ b/xxl-job-executor-example/src/main/resources/applicationcontext-xxl-job.xml @@ -7,6 +7,15 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> + + + + + classpath*:xxl-job-executor.properties + + + + @@ -15,10 +24,10 @@ - + - - + + @@ -34,7 +43,7 @@ - + @@ -49,10 +58,10 @@ - - - - + + + + @@ -61,11 +70,6 @@ - - - - classpath:jdbc.properties - - + \ No newline at end of file diff --git a/xxl-job-executor-example/src/main/resources/jdbc.properties b/xxl-job-executor-example/src/main/resources/jdbc.properties deleted file mode 100644 index 260ce72b..00000000 --- a/xxl-job-executor-example/src/main/resources/jdbc.properties +++ /dev/null @@ -1,4 +0,0 @@ -c3p0.driverClass=com.mysql.jdbc.Driver -c3p0.url=jdbc:mysql://localhost:3306/xxl-job?useUnicode=true&characterEncoding=UTF-8 -c3p0.user=root -c3p0.password=root_pwd \ No newline at end of file diff --git a/xxl-job-executor-example/src/main/resources/xxl-job-executor.properties b/xxl-job-executor-example/src/main/resources/xxl-job-executor.properties new file mode 100644 index 00000000..7383bbce --- /dev/null +++ b/xxl-job-executor-example/src/main/resources/xxl-job-executor.properties @@ -0,0 +1,13 @@ +### xxl-job db +xxl.job.db.driverClass=com.mysql.jdbc.Driver +xxl.job.db.url=jdbc:mysql://localhost:3306/xxl-job?useUnicode=true&characterEncoding=UTF-8 +xxl.job.db.user=root +xxl.job.db.password=root_pwd + +### xxl-job glue cache time/ms +xxl.job.glue.cache.time=10000 + +### xxl-job executor address +xxl.job.executor.appname=xxl-job-executor-example +xxl.job.executor.ip= +xxl.job.executor.port=9999 \ No newline at end of file diff --git a/xxl-job-executor-example/src/main/webapp/WEB-INF/web.xml b/xxl-job-executor-example/src/main/webapp/WEB-INF/web.xml index 60e82ff8..e4bb36b8 100644 --- a/xxl-job-executor-example/src/main/webapp/WEB-INF/web.xml +++ b/xxl-job-executor-example/src/main/webapp/WEB-INF/web.xml @@ -20,19 +20,6 @@ org.springframework.web.context.ContextLoaderListener - - - index.html