src/main/java/com/zy/core/thread/BarcodeThread.java @@ -43,6 +43,7 @@ String s = new String(read); if (!Cools.isEmpty(s)) { barcode = new String(read); log.info("{}号条码器,检索数据:{}", slave.getId(), this.barcode); } } Thread.sleep(100);