From 11b9b5a2cfd5b23e80ce6a3be3f9b341a2cd1be0 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期三, 13 九月 2023 17:36:55 +0800 Subject: [PATCH] 增加小车任务逻辑判断 --- springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java | 30 ++++++++++++++++++------------ 1 files changed, 18 insertions(+), 12 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java b/springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java index c2b68a7..667bda8 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java +++ b/springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java @@ -7,15 +7,17 @@ import org.springframework.stereotype.Component; import com.example.springboot.component.PlcHold; -import com.example.springboot.component.Plcaction; import com.example.springboot.component.PlcParameter; +import com.example.springboot.component.Plcaction; import com.example.springboot.component.Plchome; +import com.example.springboot.component.Plcalarm; +import com.example.springboot.component.Plcsign; +import com.example.springboot.component.Plcstate; @Component @Order(1) public class AppRunnerConfig implements ApplicationRunner { - @Override public void run(ApplicationArguments args) throws Exception { @@ -23,18 +25,22 @@ // System.out.println("鍚姩瀹屾垚"); - new PlcHold().start(); + + new PlcHold().start(); + + + new Plcaction().start(); - new PlcParameter().start(); - - - - - } new Plchome().start(); - + + new PlcParameter().start(); + + new Plcalarm().start(); + + new Plcsign().start(); + + new Plcstate().start(); } - - +} \ No newline at end of file -- Gitblit v1.8.0