springboot-vue3/src/main/java/com/example/springboot/config/AppRunnerConfig.java
@@ -5,7 +5,8 @@
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import com.example.springboot.component.PlcHold;
import com.example.springboot.component.Plcaction;
@Component
@Order(1)
@@ -16,6 +17,7 @@
       //
       System.out.println("启动完成");
       
       new PlcHold().start();
        new Plcaction().start();
    }   
}