会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wangkunlaile
博客园
首页
新随笔
联系
订阅
管理
2022年5月17日
ByteBuf
摘要: ByteBuf是netty传输数据的容器,是对jdk ByteBuffer的增强 1.ByteBuf的创建 //使用ByteBufAllocator创建空参创建默认的容量为256,也可以自己指定大小,创建时指定 默认是直接内存 ByteBuf buffer = ByteBufAllocator.DE
阅读全文
posted @ 2022-05-17 15:06 wangkunlaile
阅读(199)
评论(0)
推荐(0)
2022年5月16日
netty入门代码
摘要: 服务器端代码 //创建服务器 new ServerBootstrap()//指定eventLoop分组.group(new NioEventLoopGroup()) //指定channel实现 服务器选择NioServerSocketChannel.channel(NioServerSocketCh
阅读全文
posted @ 2022-05-16 16:48 wangkunlaile
阅读(99)
评论(0)
推荐(0)
2022年3月1日
redission快速入门
摘要: 1.先引入redisson依赖 <dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>3.13.6</version> </dependency> 2.配置redissonCli
阅读全文
posted @ 2022-03-01 10:27 wangkunlaile
阅读(1020)
评论(0)
推荐(0)
公告