Netty 服务端创建过程

摘要: 1.首先通过构造函数创建ServerBootstrap 实例,ServerBootStrap是Netty的启动辅助类。用于设置服务端启动相关的参数 2.设置并绑定Reactor线程池,也就是创建EventLoopGroup对象,管理相关业务。 3.设置并且绑定服务端通道(Channel),Netty 阅读全文
posted @ 2019-07-21 21:48 GhostSugar 阅读(740) 评论(0) 推荐(0)

git failed to push some refs to

摘要: Administrator@AB-201903201424 MINGW64 /d/IdeaProject/github/netty-guide (master) $ git pull There is no tracking information for the current branch. Please specify which branch you want to merge with... 阅读全文
posted @ 2019-07-18 19:12 GhostSugar 阅读(657) 评论(0) 推荐(0)

SPI simp

摘要: SPI 全称为 Service Provider Interface,是一种服务发现机制。SPI 的本质是将接口实现类的全限定名配置在文件中,并由服务加载器读取配置文件,加载实现类。这样可以在运行时,动态为接口替换实现类。正因此特性,我们可以很容易的通过 SPI 机制为我们的程序提供拓展功能。 示例 阅读全文
posted @ 2019-07-18 15:28 GhostSugar 阅读(191) 评论(0) 推荐(0)

LinkedList浅析

摘要: LinkedList浅析 LinkedList是Collection下的一个list实现,就像ArrayList一样。 LinkedList浅析 LinkedList浅析 LinkedList是Collection下的一个list实现,就像ArrayList一样。 和ArrayList不同的是它是链 阅读全文
posted @ 2018-08-31 17:43 GhostSugar 阅读(323) 评论(0) 推荐(0)

java基础-arrayList

摘要: ArrayList: 结构之钱了解了,ArrayList()会构造出一个初始容量=10的空的列表; ArrayList()的增加和删除都是拷贝数组到新的数组(如果当前数组容量不足的话),把数组内的元素全部前移/后移去完成,然后把引用指向新的数组; LinkedList()是直接删除引用节点,并且重新 阅读全文
posted @ 2018-08-31 17:42 GhostSugar 阅读(139) 评论(0) 推荐(0)

怎样快速提高自己

摘要: 1.先看现成的,可以直接用的 *如果是代码,直接先跑demo,然后再研究 *如果有现成的或者之前已经写好的功能,先去看他们如何实现的,再添加 ++++++++++++++待整理+++++++++++++++++++++ 1.webxml的配置文件详解2.DES是什么,如何加密3.token是什么,如 阅读全文
posted @ 2018-08-12 15:26 GhostSugar 阅读(202) 评论(0) 推荐(0)

git 安装部署教程

摘要: 转转改改修修,能用: 查看用户名和邮箱 $ git config user.name $ git config user.email 修改用户名和邮箱 $ git config user.name $ git config user.email 设置用户名和邮箱(全局) $ git config - 阅读全文
posted @ 2018-08-11 22:20 GhostSugar 阅读(998) 评论(0) 推荐(0)

20分钟教你配好一台服务器

摘要: 老曹(曹越)—— 页面仔,哇哈哈哈 所有软件和服务均安装在/usr/local下 mysql5.7直接apt-get安装 安装mysql:apt-get install mysql-server //安装命令不唯一 jdk maven tomcat resin nginx memcache redi 阅读全文
posted @ 2018-08-11 22:19 GhostSugar 阅读(448) 评论(0) 推荐(0)

nginx配置静态页面访问

摘要: server { server_name static.naice.me; // 你的域名或者 ip # 域名:static.naice.me 这里用 "_" 代表获取匹配所有 root /www/static-web/static-web; // 你的克隆到的项目路径 index index.ht 阅读全文
posted @ 2018-08-11 22:18 GhostSugar 阅读(14762) 评论(0) 推荐(0)

企业SQL笔试

摘要: Student(SID, Sname, Sage, Ssex) 学生表 Course(CID, Cname, TID) 课程表 SC(SID, CID, score) 成绩表 Teacher(TID, Tname) 教师表 <Teacher 教师表> TID Tname <Teacher 教师表> 阅读全文
posted @ 2018-08-11 22:18 GhostSugar 阅读(626) 评论(0) 推荐(0)