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