Pārlūkot izejas kodu

spring-boot执行器example项目取消log4j依赖

xueli.xue 8 gadus atpakaļ
vecāks
revīzija
90e1f90859

+ 3 - 2
README.md Parādīt failu

@@ -99,9 +99,10 @@ XXL-JOB是一个轻量级分布式任务调度框架,其核心设计目标是
99 99
 ![输入图片说明](https://static.oschina.net/uploads/img/201704/25151032_nrJN.png "在这里输入图片标题")
100 100
 
101 101
 ### 1.5 环境
102
-- Servlet/JSP Spec:3.1/2.3
103 102
 - JDK:1.7+
104
-- Tomcat:8.5.x+/Jetty9.2+
103
+- Servlet/JSP Spec:3.1/2.3
104
+- Tomcat:8.5.x/Jetty9.2
105
+- Spring-boot:1.3.8/Spring4.x
105 106
 - Mysql:5.6+
106 107
 - Maven:3+
107 108
 

+ 1 - 12
xxl-job-executor-springboot-example/pom.xml Parādīt failu

@@ -15,7 +15,6 @@
15 15
 
16 16
     <properties>
17 17
         <xxl-job.version>1.7.0-SNAPSHOT</xxl-job.version>
18
-        <!--<spring-boot.version>1.5.3.RELEASE</spring-boot.version>-->
19 18
         <spring-boot.version>1.3.8.RELEASE</spring-boot.version>
20 19
 
21 20
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -37,20 +36,10 @@
37 36
     </dependencyManagement>
38 37
 
39 38
     <dependencies>
40
-        <dependency>
41
-            <groupId>org.springframework.boot</groupId>
42
-            <artifactId>spring-boot-starter</artifactId>
43
-            <exclusions>
44
-                <exclusion>
45
-                    <groupId>org.springframework.boot</groupId>
46
-                    <artifactId>spring-boot-starter-logging</artifactId>
47
-                </exclusion>
48
-            </exclusions>
49
-        </dependency>
50 39
 
51 40
         <dependency>
52 41
             <groupId>org.springframework.boot</groupId>
53
-            <artifactId>spring-boot-starter-log4j</artifactId>
42
+            <artifactId>spring-boot-starter</artifactId>
54 43
         </dependency>
55 44
 
56 45
         <!-- spring-boot-starter-web (提供了对web的支持,包含了spring webmvc和tomcat等web开发的特性) -->

+ 6 - 8
xxl-job-executor-springboot-example/src/test/java/com/xxl/job/executor/test/XxlJobExecutorExampleBootApplicationTests.java Parādīt failu

@@ -1,19 +1,17 @@
1 1
 package com.xxl.job.executor.test;
2 2
 
3
-import com.xxl.job.executor.Application;
4 3
 import org.junit.Test;
5
-import org.junit.runner.RunWith;
6
-import org.springframework.boot.test.SpringApplicationConfiguration;
7
-import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
8
-import org.springframework.test.context.web.WebAppConfiguration;
9 4
 
10
-@RunWith(SpringJUnit4ClassRunner.class)
5
+/*@RunWith(SpringJUnit4ClassRunner.class)
11 6
 @SpringApplicationConfiguration(classes = Application.class)
12
-@WebAppConfiguration
7
+@WebAppConfiguration*/
8
+/*@RunWith(SpringRunner.class)
9
+@SpringBootTest(classes = Application.class ,webEnvironment= SpringBootTest.WebEnvironment.DEFINED_PORT)*/
13 10
 public class XxlJobExecutorExampleBootApplicationTests {
14 11
 
15 12
 	@Test
16
-	public void contextLoads() {
13
+	public void test() {
14
+
17 15
 	}
18 16
 
19 17
 }