sgj
2026-03-02 747a4a421dc8c1faf1c768aaac0fc7abc258e2c0
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);
    }
}