|
@@ -12,6 +12,7 @@ import com.sagacloud.route.processors.Maintainance.FilterPropertyProcessor;
|
|
|
import com.sagacloud.route.processors.Maintainance.QueryPropertyProcesspr;
|
|
|
import com.sagacloud.route.processors.Manufacturer.MaunfacturerFilter;
|
|
|
import com.sagacloud.route.processors.Manufacturer.GetVenderBySpecProcessor;
|
|
|
+import com.sagacloud.route.processors.PeriodTask.OnTimeTaskProcessor;
|
|
|
import com.sagacloud.route.processors.PeriodTask.StatisticsProcessor;
|
|
|
import com.sagacloud.route.processors.VenderMapProcessor;
|
|
|
import com.sagacloud.route.processors.supplier.SupplierFilter;
|
|
@@ -32,7 +33,7 @@ public class Route extends ExceptionHandlerBaseRoute {
|
|
|
public void configure() throws Exception {
|
|
|
configExceptionHandler();
|
|
|
|
|
|
- fromF("timer://simpleTimer?period=1m").to("direct:syncAllProject");
|
|
|
+ fromF("timer://simpleTimer?period=1m").process(new OnTimeTaskProcessor()).to("direct:syncAllProject");
|
|
|
|
|
|
rest().get("/doc")
|
|
|
.produces("text/html;charset=UTF-8")
|