Browse Source

Merge remote-tracking branch 'origin/master'

FanXiaoyu 6 years ago
parent
commit
dc646140f3

+ 1 - 0
src/main/java/com/sagacloud/route/InitEnvRoute.java

@@ -19,6 +19,7 @@ public class InitEnvRoute extends RouteBuilder {
 
         fromF("timer://simpleTimer?period=1m").to("direct:syn");
 
+
         from("direct:syn")
                 .to(dataPlatform + "/mng/project/query?bridgeEndpoint=true&secret=A123456")
                 .process(exchange -> {

+ 3 - 0
src/main/java/com/sagacloud/route/Route.java

@@ -31,6 +31,9 @@ public class Route extends ExceptionHandlerBaseRoute {
     @Override
     public void configure() throws Exception {
         configExceptionHandler();
+
+        fromF("timer://simpleTimer?period=1m").to("direct:syncAllProject");
+
         rest().get("/doc")
                 .produces("text/html;charset=UTF-8")
                 .route()