Browse Source

schedule 测试程序

chudk 7 years ago
parent
commit
5a575400e1

+ 2 - 2
src/main/java/com/tidecloud/dataacceptance/swagger/SwaggerConfig.java → src/main/java/com/tidecloud/dataacceptance/bean/SwaggerConfig.java

@@ -1,4 +1,4 @@
-package com.tidecloud.dataacceptance.swagger;
+package com.tidecloud.dataacceptance.bean;
 
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
@@ -24,7 +24,7 @@ public class SwaggerConfig {
         return new Docket(DocumentationType.SWAGGER_2)
                 .apiInfo(apiInfo())
                 .select()
-                .apis(RequestHandlerSelectors.basePackage("com.tidecloud.datacceptance.web"))
+                .apis(RequestHandlerSelectors.basePackage("com.tidecloud.dataacceptance.web"))
                 .paths(PathSelectors.any())
                 .build();
     }

+ 11 - 0
src/main/java/com/tidecloud/dataacceptance/bean/WebConfig.java

@@ -0,0 +1,11 @@
+package com.tidecloud.dataacceptance.bean;
+
+import com.smartsanitation.common.config.CommonWebConfig;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Created by vinson on 2017/8/12.
+ */
+@Configuration
+public class WebConfig extends CommonWebConfig {
+}

+ 1 - 1
src/main/java/com/tidecloud/dataacceptance/schedule/DeviceControlSchedule.java

@@ -25,7 +25,7 @@ public class DeviceControlSchedule {
 
     private static final Logger logger = LoggerFactory.getLogger(DeviceControlSchedule.class);
     
-    @Scheduled(cron = "0 0 10 * * ?")
+    @Scheduled(cron = "0 35 14 * * ?")
     public void settingUploadTime(){
         Map<String, Channel> commandCopy = DiscardServerHandler.manageChannelMap;
         Map<Channel, String> channelMap = DiscardServerHandler.channelMap;