Commit 1752cdcb784af11e34bdbbddd1e86d5e1b10b8dd
1 parent
9d52b7d1
1.chengdu分支配置变更
Showing
4 changed files
with
8 additions
and
3 deletions
src/main/java/com/bsth/Application.java
| 1 | package com.bsth; | 1 | package com.bsth; |
| 2 | 2 | ||
| 3 | +import com.bsth.util.AppProperties; | ||
| 4 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 3 | import org.springframework.boot.SpringApplication; | 5 | import org.springframework.boot.SpringApplication; |
| 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; | 6 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| 5 | import org.springframework.boot.builder.SpringApplicationBuilder; | 7 | import org.springframework.boot.builder.SpringApplicationBuilder; |
| @@ -14,6 +16,9 @@ import java.util.concurrent.ScheduledExecutorService; | @@ -14,6 +16,9 @@ import java.util.concurrent.ScheduledExecutorService; | ||
| 14 | @SpringBootApplication | 16 | @SpringBootApplication |
| 15 | public class Application extends SpringBootServletInitializer { | 17 | public class Application extends SpringBootServletInitializer { |
| 16 | 18 | ||
| 19 | + @Autowired | ||
| 20 | + private AppProperties appProperties; | ||
| 21 | + | ||
| 17 | public static ScheduledExecutorService mainServices = Executors.newScheduledThreadPool(10); | 22 | public static ScheduledExecutorService mainServices = Executors.newScheduledThreadPool(10); |
| 18 | 23 | ||
| 19 | @Override | 24 | @Override |
src/main/java/com/bsth/server_rs/directive/DirectiveRestService.java
| @@ -23,8 +23,8 @@ import java.util.Map; | @@ -23,8 +23,8 @@ import java.util.Map; | ||
| 23 | @Produces({MediaType.APPLICATION_JSON}) | 23 | @Produces({MediaType.APPLICATION_JSON}) |
| 24 | public class DirectiveRestService { | 24 | public class DirectiveRestService { |
| 25 | 25 | ||
| 26 | - static String url = AppProperties.getControlUrl(); | ||
| 27 | static String secretKey = AppProperties.getSecretKey(); | 26 | static String secretKey = AppProperties.getSecretKey(); |
| 27 | + static String url = AppProperties.getControlUrl() + "/send60Phrase?secretKey=" + secretKey; | ||
| 28 | 28 | ||
| 29 | @Autowired | 29 | @Autowired |
| 30 | SchRealDataBuffer schRealDataBuffer; | 30 | SchRealDataBuffer schRealDataBuffer; |
src/main/java/com/bsth/server_rs/schedule/real/thread/ExecSchDataRefreshThread.java
| @@ -21,8 +21,8 @@ import java.util.Map; | @@ -21,8 +21,8 @@ import java.util.Map; | ||
| 21 | @Component | 21 | @Component |
| 22 | public class ExecSchDataRefreshThread extends Thread{ | 22 | public class ExecSchDataRefreshThread extends Thread{ |
| 23 | 23 | ||
| 24 | - static String url = AppProperties.getControlUrl(); | ||
| 25 | static String secretKey = AppProperties.getSecretKey(); | 24 | static String secretKey = AppProperties.getSecretKey(); |
| 25 | + static String url = AppProperties.getControlUrl() + "/execSchList?secretKey=" + secretKey; | ||
| 26 | 26 | ||
| 27 | @Autowired | 27 | @Autowired |
| 28 | SchRealDataBuffer schRealDataBuffer; | 28 | SchRealDataBuffer schRealDataBuffer; |
src/main/java/com/bsth/server_rs/schedule/real/thread/SchInOutDataRefreshThread.java
| @@ -19,8 +19,8 @@ import java.util.List; | @@ -19,8 +19,8 @@ import java.util.List; | ||
| 19 | @Component | 19 | @Component |
| 20 | public class SchInOutDataRefreshThread extends Thread { | 20 | public class SchInOutDataRefreshThread extends Thread { |
| 21 | 21 | ||
| 22 | - static String url = AppProperties.getControlUrl(); | ||
| 23 | static String secretKey = AppProperties.getSecretKey(); | 22 | static String secretKey = AppProperties.getSecretKey(); |
| 23 | + static String url = AppProperties.getControlUrl() + "/findCurrInAndOut?secretKey=" + secretKey; | ||
| 24 | 24 | ||
| 25 | @Autowired | 25 | @Autowired |
| 26 | SchRealDataBuffer schRealDataBuffer; | 26 | SchRealDataBuffer schRealDataBuffer; |