zhang
2025-06-13 ae54e42cbe354ef5c39954eed2eab18de9504946
src/main/java/com/zy/core/ServerBootstrap.java
@@ -5,9 +5,10 @@
import com.zy.core.enums.SlaveType;
import com.zy.core.model.CrnSlave;
import com.zy.core.model.DevpSlave;
import com.zy.core.model.LedSlave;
import com.zy.core.properties.SlaveProperties;
import com.zy.core.thread.*;
import com.zy.core.thread.BarcodeThread;
import com.zy.core.thread.SiemensCrnThread;
import com.zy.core.thread.SiemensDevpThread;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
@@ -28,6 +29,7 @@
    @Autowired
    private MainProcess mainProcess;
    /**
     * PostConstruct会在加载servlet的时候运行一次
     * @throws InterruptedException
@@ -43,6 +45,7 @@
        initThread();
        // 开始主流程进程
        mainProcess.start();
        log.info("核心控制层已启动...............................................");
    }