Skip to content

Commit ed67c89

Browse files
committed
scheduler
1 parent 6c17290 commit ed67c89

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ Spring Boot 使用的各种示例,以最简单、最实用为标准,此开
4646
- [Spring Boot/Cloud 研发团队介绍](http://www.ityouknow.com/springboot/2019/01/03/spring-pivotal.html)
4747
- [Spring Boot 2 (十):Spring Boot 中的响应式编程和 WebFlux 入门](http://www.ityouknow.com/springboot/2019/02/12/spring-boot-webflux.html)
4848

49-
---
5049

5150

52-
## 下方示例逐步升级到2.X,目前更新到 Spring Boot(),最新进展可以关注下方公号。
51+
## 下方示例逐步升级到2.X,目前更新到 Spring Boot(),最新进展可以关注下方公号。
5352

5453
![](http://www.itmind.net/assets/images/java.jpg)
5554

spring-boot-scheduler/pom.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.springframework.boot</groupId>
1616
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.4.2.RELEASE</version>
17+
<version>2.1.0.RELEASE</version>
1818
<relativePath/> <!-- lookup parent from repository -->
1919
</parent>
2020

@@ -33,21 +33,13 @@
3333
<artifactId>spring-boot-starter-test</artifactId>
3434
<scope>test</scope>
3535
</dependency>
36-
<dependency>
37-
<groupId>org.springframework.boot</groupId>
38-
<artifactId>spring-boot-devtools</artifactId>
39-
<optional>true</optional>
40-
</dependency>
4136
</dependencies>
4237

4338
<build>
4439
<plugins>
4540
<plugin>
4641
<groupId>org.springframework.boot</groupId>
4742
<artifactId>spring-boot-maven-plugin</artifactId>
48-
<configuration>
49-
<fork>true</fork>
50-
</configuration>
5143
</plugin>
5244
</plugins>
5345
</build>

spring-boot-scheduler/src/main/java/com/neo/Application.java renamed to spring-boot-scheduler/src/main/java/com/neo/SchedulerApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
@SpringBootApplication
88
@EnableScheduling
9-
public class Application {
9+
public class SchedulerApplication {
1010

1111
public static void main(String[] args) {
12-
SpringApplication.run(Application.class, args);
12+
SpringApplication.run(SchedulerApplication.class, args);
1313
}
1414
}

spring-boot-scheduler/src/test/java/com/neo/ApplicationTests.java renamed to spring-boot-scheduler/src/test/java/com/neo/SchedulerApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@RunWith(SpringRunner.class)
99
@SpringBootTest
10-
public class ApplicationTests {
10+
public class SchedulerApplicationTests {
1111

1212
@Test
1313
public void contextLoads() {

0 commit comments

Comments
 (0)