APP
YYC
2026-02-12 8ac3affc79126b0b8ec6f4f7e80b73a6b4a4634b
fzzy-igdss-io/src/main/java/com/fzzy/igds/ServerRunner.java
@@ -1,5 +1,6 @@
package com.fzzy.igds;
import com.fzzy.igds.iot.server.IotServerEngine;
import com.fzzy.igds.quantity.server.BhznQuantityServerEngine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
@@ -20,12 +21,18 @@
    public static final String BEAN_ID = "quantity.serverRunner";
    @Resource
    private BhznQuantityServerEngine serverEngine;
    private BhznQuantityServerEngine quantityServerEngine;
    @Resource
    private IotServerEngine iotServerEngine;
    @Override
    public void run(String... strings) throws Exception {
        serverEngine.start(BhznQuantityServerEngine.PORT);
        //数量检测端口
        quantityServerEngine.start(BhznQuantityServerEngine.PORT);
        //IOT设备端口
        iotServerEngine.start(IotServerEngine.PORT);
    }
}