From 3eced65b14a858329fd2b7f4c8bc6c5d66710c78 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期三, 06 九月 2023 16:57:01 +0800 Subject: [PATCH] Merge branch 'master' of ssh://10.153.19.150:29418/CanadaMes --- springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java | 31 ++++++++++++++++++++++--------- 1 files changed, 22 insertions(+), 9 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 83af3f6..a931db3 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,23 +1,36 @@ 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.Plcaction; +import com.example.springboot.component.PlcParameter; @Component @Order(1) -public class AppRunnerConfig implements ApplicationRunner{ - @Override - public void run(ApplicationArguments args) throws Exception { - // TODO Auto-generated method stub - // - System.out.println("鍚姩瀹屾垚"); + +public class AppRunnerConfig implements ApplicationRunner { - new Plcaction().start(); + @Override + public void run(ApplicationArguments args) throws Exception { + // TODO Auto-generated method stub + // + System.out.println("鍚姩瀹屾垚"); + + new PlcHold().start(); + new Plcaction().start(); + new PlcParameter().start(); + + + + } -} + + } + + -- Gitblit v1.8.0