06 2021 档案
摘要:@Component public class NettyClient implements ApplicationContextAware { NettyClientHandler nettyClientHandler; /** * 当前 ApplicationContent 后面注入用 */ p
阅读全文
摘要:以下是伪代码 方法一 前后代码省略 //绑定服务器,该实例将提供有关IO操作的结果或状态的信息 ChannelFuture channelFuture = bootstrap.bind(); this.serverChannel = channelFuture.channel(); //给cf 注册
阅读全文
摘要:Maven 引用jar包冲突 ,Intellij 查找排除JAR包的依赖关系(Maven Helper) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</ar
阅读全文
摘要:监听服务的四种实现方式,以监听 Nacos 服务为例 1. 传统方式 public void subscribe() { try { NamingService namingService = NamingFactory.createNamingService("127.0.0.1:8848");
阅读全文
浙公网安备 33010602011771号