Browse Source

scheduler

纯洁的微笑 6 years ago
parent
commit
ed67c898d6

+ 1 - 2
README.md

@@ -46,10 +46,9 @@ Spring Boot 使用的各种示例,以最简单、最实用为标准,此开
 - [Spring Boot/Cloud 研发团队介绍](http://www.ityouknow.com/springboot/2019/01/03/spring-pivotal.html) 
 - [Spring Boot 2 (十):Spring Boot 中的响应式编程和 WebFlux 入门](http://www.ityouknow.com/springboot/2019/02/12/spring-boot-webflux.html) 
 
----
 
 
-## 下方示例逐步升级到2.X,目前更新到 Spring Boot(),最新进展可以关注下方公号。
+## 下方示例逐步升级到2.X,目前更新到 Spring Boot(),最新进展可以关注下方公号。
 
 ![](http://www.itmind.net/assets/images/java.jpg)
 

+ 1 - 9
spring-boot-scheduler/pom.xml

@@ -14,7 +14,7 @@
 	<parent>
 		<groupId>org.springframework.boot</groupId>
 		<artifactId>spring-boot-starter-parent</artifactId>
-		<version>1.4.2.RELEASE</version>
+		<version>2.1.0.RELEASE</version>
 		<relativePath/> <!-- lookup parent from repository -->
 	</parent>
 
@@ -33,11 +33,6 @@
 			<artifactId>spring-boot-starter-test</artifactId>
 			<scope>test</scope>
 		</dependency>
-	     <dependency>
-	        <groupId>org.springframework.boot</groupId>
-	        <artifactId>spring-boot-devtools</artifactId>
-	        <optional>true</optional>
-		</dependency>
 	</dependencies>
 	
 	<build>
@@ -45,9 +40,6 @@
 			<plugin>
 				<groupId>org.springframework.boot</groupId>
 				<artifactId>spring-boot-maven-plugin</artifactId>
-				<configuration>
-	                <fork>true</fork>
-	            </configuration>
 			</plugin>
 		</plugins>
 	</build>

+ 2 - 2
spring-boot-scheduler/src/main/java/com/neo/Application.java → spring-boot-scheduler/src/main/java/com/neo/SchedulerApplication.java

@@ -6,9 +6,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
 
 @SpringBootApplication
 @EnableScheduling
-public class Application {
+public class SchedulerApplication {
 
 	public static void main(String[] args) {
-		SpringApplication.run(Application.class, args);
+		SpringApplication.run(SchedulerApplication.class, args);
 	}
 }

+ 1 - 1
spring-boot-scheduler/src/test/java/com/neo/ApplicationTests.java → spring-boot-scheduler/src/test/java/com/neo/SchedulerApplicationTests.java

@@ -7,7 +7,7 @@ import org.springframework.test.context.junit4.SpringRunner;
 
 @RunWith(SpringRunner.class)
 @SpringBootTest
-public class ApplicationTests {
+public class SchedulerApplicationTests {
 
 	@Test
 	public void contextLoads() {