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