‘liusuyi’
2023-07-18 46319c55f34da2763a87b09519b902b9437654ba
src/main/java/com/ard/alarm/tube/service/TubeAlarmService.java
@@ -28,7 +28,7 @@
@Service
@Slf4j(topic = "tube")
@Order(3)
public class TubeAlarmService implements ApplicationRunner {
public class TubeAlarmService {
    @Resource
    NettyUdpServer nettyUdpServer;
@@ -36,8 +36,9 @@
    private Integer udpPort;
    @Value("${spring.netty.udp.enabled}")
    private String UdpServerEnable;
    @Override
    public void run(ApplicationArguments args) throws Exception {
    @PostConstruct
    public void init() {
        if (UdpServerEnable.equals("false")) {
            return;
        }