| | |
| | | import io.netty.channel.socket.nio.NioSocketChannel; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.boot.ApplicationArguments; |
| | | import org.springframework.boot.ApplicationRunner; |
| | | import org.springframework.core.annotation.Order; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | |
| | | */ |
| | | @Component |
| | | @Slf4j(topic = "netty") |
| | | public class ClientInitialize { |
| | | @Order(2) |
| | | public class ClientInitialize implements ApplicationRunner { |
| | | |
| | | @Resource |
| | | IArdEquipRadarService ardEquipRadarService; |
| | |
| | | /** |
| | | * 初始化方法 |
| | | */ |
| | | @PostConstruct |
| | | public void initialize() { |
| | | @Override |
| | | public void run(ApplicationArguments args) throws Exception { |
| | | if (!tcpClientEnable) { |
| | | return; |
| | | } |