|
@@ -1,7 +1,5 @@
|
|
package com.platform.opc;
|
|
package com.platform.opc;
|
|
|
|
|
|
-import com.platform.opc.util.OpcDAClient;
|
|
|
|
-import com.platform.opc.util.OpcUAClientUtil;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.boot.CommandLineRunner;
|
|
import org.springframework.boot.CommandLineRunner;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.SpringApplication;
|
|
@@ -17,7 +15,7 @@ import java.util.TimeZone;
|
|
* @Date 2019/7/22
|
|
* @Date 2019/7/22
|
|
* @Version Copyright (c) 2019,北京乾元坤和科技有限公司 All rights reserved.
|
|
* @Version Copyright (c) 2019,北京乾元坤和科技有限公司 All rights reserved.
|
|
*/
|
|
*/
|
|
-@SpringBootApplication
|
|
|
|
|
|
+@SpringBootApplication(scanBasePackages = {"com.platform.common", "com.platform.opc"})
|
|
@EnableScheduling
|
|
@EnableScheduling
|
|
@Order(1)
|
|
@Order(1)
|
|
@Slf4j
|
|
@Slf4j
|
|
@@ -30,7 +28,7 @@ public class OpcApplication implements CommandLineRunner {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void run(String... args) throws Exception {
|
|
public void run(String... args) throws Exception {
|
|
- OpcDAClient.run();
|
|
|
|
|
|
+ // OpcDAClient.run();
|
|
Thread.sleep(1000);
|
|
Thread.sleep(1000);
|
|
}
|
|
}
|
|
}
|
|
}
|