jiazx0107@163.com
2024-01-04 50da1f165cc96d49d72694606920b77c74e1747c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.fzzy.protocol;
 
import com.fzzy.protocol.bhzn.server.BhznGrainV2ServerEngine;
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);
 
    }
 
}