06 2021 档案

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