#
tqs
2022-12-06 f7584f6dfb88f4d66f381eb1404b7eaab5ac014a
src/main/java/com/zy/core/ServerBootstrap.java
@@ -28,7 +28,10 @@
    @Autowired
    private MainProcess mainProcess;
    /**
     * PostConstruct会在加载servlet的时候运行一次
     * @throws InterruptedException
     */
    @PostConstruct
    @Async
    public void init() throws InterruptedException {
@@ -89,7 +92,7 @@
        log.info("初始化条码扫描仪线程...................................................");
        for (Slave barcode : slaveProperties.getBarcode()) {
            BarcodeThread barcodeThread = new BarcodeThread(barcode);
            new Thread(barcodeThread).start();
//            new Thread(barcodeThread).start();
            SlaveConnection.put(SlaveType.Barcode, barcode.getId(), barcodeThread);
        }
        // 初始化LED线程