提交 90e1f908 authored 作者: xueli.xue's avatar xueli.xue

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

上级 fa9fac39
...@@ -99,9 +99,10 @@ XXL-JOB是一个轻量级分布式任务调度框架,其核心设计目标是 ...@@ -99,9 +99,10 @@ XXL-JOB是一个轻量级分布式任务调度框架,其核心设计目标是
![输入图片说明](https://static.oschina.net/uploads/img/201704/25151032_nrJN.png "在这里输入图片标题") ![输入图片说明](https://static.oschina.net/uploads/img/201704/25151032_nrJN.png "在这里输入图片标题")
### 1.5 环境 ### 1.5 环境
- Servlet/JSP Spec:3.1/2.3
- JDK:1.7+ - JDK:1.7+
- Tomcat:8.5.x+/Jetty9.2+ - Servlet/JSP Spec:3.1/2.3
- Tomcat:8.5.x/Jetty9.2
- Spring-boot:1.3.8/Spring4.x
- Mysql:5.6+ - Mysql:5.6+
- Maven:3+ - Maven:3+
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
<properties> <properties>
<xxl-job.version>1.7.0-SNAPSHOT</xxl-job.version> <xxl-job.version>1.7.0-SNAPSHOT</xxl-job.version>
<!--<spring-boot.version>1.5.3.RELEASE</spring-boot.version>-->
<spring-boot.version>1.3.8.RELEASE</spring-boot.version> <spring-boot.version>1.3.8.RELEASE</spring-boot.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
...@@ -37,20 +36,10 @@ ...@@ -37,20 +36,10 @@
</dependencyManagement> </dependencyManagement>
<dependencies> <dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j</artifactId> <artifactId>spring-boot-starter</artifactId>
</dependency> </dependency>
<!-- spring-boot-starter-web (提供了对web的支持,包含了spring webmvc和tomcat等web开发的特性) --> <!-- spring-boot-starter-web (提供了对web的支持,包含了spring webmvc和tomcat等web开发的特性) -->
......
package com.xxl.job.executor.test; package com.xxl.job.executor.test;
import com.xxl.job.executor.Application;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
@RunWith(SpringJUnit4ClassRunner.class) /*@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = Application.class) @SpringApplicationConfiguration(classes = Application.class)
@WebAppConfiguration @WebAppConfiguration*/
/*@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class ,webEnvironment= SpringBootTest.WebEnvironment.DEFINED_PORT)*/
public class XxlJobExecutorExampleBootApplicationTests { public class XxlJobExecutorExampleBootApplicationTests {
@Test @Test
public void contextLoads() { public void test() {
} }
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论