上一页 1 2 3 4 5 6 ··· 22 下一页

2019年11月11日

vi命令行命令的积累

摘要: 统计单词评率 :%s/string/&/gn just replace string with what you want to count n查看next word出现的位置 阅读全文

posted @ 2019-11-11 19:52 CreatorKou 阅读(127) 评论(0) 推荐(0) 编辑

2019年10月22日

github项目cim(命令行即时通讯), HashedWheelTimer学习笔记

摘要: springboot构建restful api的工具swagger2 https://www.jianshu.com/p/8033ef83a8ed springboot CommandLineRunner作用 https://www.cnblogs.com/harrychinese/p/Spring 阅读全文

posted @ 2019-10-22 10:09 CreatorKou 阅读(553) 评论(0) 推荐(0) 编辑

2019年10月21日

java读取资源文件/打jar包后读取资源文件的区别

摘要: https://www.iteye.com/topic/483115 我们常常在代码中读取一些资源文件(比如图片,音乐,文本等等)。在单独运行的时候这些简单的处理当然不会有问题。但是,如果我们把代码打成一个jar包以后,即使将资源文件一并打包,这些东西也找不出来了。看看下面的代码: Java代码 / 阅读全文

posted @ 2019-10-21 11:21 CreatorKou 阅读(1003) 评论(0) 推荐(0) 编辑

2019年10月17日

vmware虚拟机网络配置(物理机能用ssh连接虚拟机, 虚拟机能共享物理机网卡上外网)仅主机模式,nat模式应该也可以

摘要: 1.环境: 物理机:windows7 虚拟机:centos7 ...xx.xx.x 虚拟化软件:vmware 13 2.准备阶段: vmware安装centos操作系统(easy),网卡地址简单配置,虚拟网卡连接方式先设置为“仅主机模式”。 3.物理机配置 在物理机win7中, win+r, ser 阅读全文

posted @ 2019-10-17 20:12 CreatorKou 阅读(1421) 评论(0) 推荐(0) 编辑

spring cloud 组件学习 hystrix学习

摘要: spring cloud各组件原理通俗解析 https://blog.csdn.net/qq_37415950/article/details/84833903 hystrix原理与实战: https://blog.csdn.net/loushuiyifan/article/details/8270 阅读全文

posted @ 2019-10-17 09:30 CreatorKou 阅读(121) 评论(0) 推荐(0) 编辑

2019年10月14日

netty优化学习积累+++++++

摘要: 一、 c/s-Handler在需要发送消息时,不一定必须调用writeandFlush(),如果对于一些零碎的消息都writeAndFlush(),那么多次频繁的调用对应多次的syscall系统调用,如何减少系统调用提高效率? write()函数,对于多次要发送的零碎的消息都采用write()函数, 阅读全文

posted @ 2019-10-14 20:12 CreatorKou 阅读(250) 评论(0) 推荐(0) 编辑

aio的缺陷和问题(linux aio, java aio(nio.2)

摘要: https://lwn.net/Articles/671649/ https://stackoverflow.com/questions/20973754/linux-aio-poor-scaling 高性能网络服务器编程:为什么linux下epoll是最好,Netty要比NIO.2好? http: 阅读全文

posted @ 2019-10-14 10:48 CreatorKou 阅读(705) 评论(0) 推荐(0) 编辑

2019年10月12日

netty pooled vs unpooled ByteBuf

摘要: Whats the difference between Pooled vs Unpooled and Direct vs Heap in ByteBuf? Like , what does pooled means in context of a message received , becaus 阅读全文

posted @ 2019-10-12 19:48 CreatorKou 阅读(1151) 评论(0) 推荐(0) 编辑

2019年10月10日

scatter/gather IO原理

摘要: https://stackoverflow.com/questions/10520182/linux-when-to-use-scatter-gather-io-readv-writev-vs-a-large-buffer-with-frea The main convenience offered 阅读全文

posted @ 2019-10-10 19:50 CreatorKou 阅读(320) 评论(0) 推荐(0) 编辑

2019年10月9日

Maven项目依赖外部jar进行打包的两种方式

摘要: https://blog.csdn.net/abcwanglinyong/artic 项目中除了pom.xml依赖之外,有时还依赖了其他jar包,如图: 依赖的方式如下: 点击Project Structure进行项目设置,在Modules中Dependencies标签中点击+号 添加lib下的所有 阅读全文

posted @ 2019-10-09 08:11 CreatorKou 阅读(2288) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 22 下一页

导航