From bcf86e7323837ff6e2c9cd6bb25b9d29907e34ed Mon Sep 17 00:00:00 2001 From: clll <1320612696@qq.com> Date: 星期五, 03 十一月 2023 17:03:43 +0800 Subject: [PATCH] 添加sign界面添加状态,判断改地址是否启用 --- springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 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 3e48672..988df23 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 @@ -1,16 +1,24 @@ package com.example.springboot.config; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.springframework.core.annotation.Order; import org.springframework.stereotype.Component; import com.example.springboot.component.PlcHold; +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 { // TODO Auto-generated method stub @@ -20,5 +28,15 @@ new PlcHold().start(); new Plcaction().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