package com.fzzy.protocol; import com.fzzy.protocol.bhzn.server.BhznGrainV2ServerEngine; import com.fzzy.protocol.bhzn.v0.server.BhznGrainV0ServerEngine; import com.fzzy.protocol.bhzn.v01.server.BhznGrainV01ServerEngine; import com.fzzy.protocol.fzzy.server.FzzyServerEngine; import com.fzzy.protocol.weightyh.YhScaleServerEngine; import com.fzzy.protocol.zldz.server.ZldzServerEngine; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.CommandLineRunner; import org.springframework.core.annotation.Order; import org.springframework.stereotype.Service; /** * 配置随系统启动默认配置 */ @Service @Slf4j @Order(value = 3) public class ProtocolRunner implements CommandLineRunner { @Override public void run(String... args) throws Exception { //耀华地磅TCP协议 YhScaleServerEngine.start(); //风正致远控制柜协议启动 FzzyServerEngine.start(null); //正来电子粮情启动 ZldzServerEngine.start(); //邦海智能纯网口设备协议 BhznGrainV2ServerEngine.start(null); //邦海智能无线主机设备协议 //BhznGrainV0ServerEngine.start(null); //邦海智能无线主机设备协议 BhznGrainV01ServerEngine.start(null); } }