08 2019 档案

虚拟机网卡配置,连接外网
摘要:vmware13 centos7 静态配置: vi /etc/sysconfig/network-scripts/ensxx 修改:bootproto=static onboot=yes gateway=(虚拟网络编辑器的nat设置查看网关ip) 添加:ipaddr=xx.x.xx.x dns=x. 阅读全文

posted @ 2019-08-26 16:39 CreatorKou 阅读(456) 评论(0) 推荐(0)

Http-Netty-Rpc-Service系统
摘要:20190823rpc系统修改日志https://github.com/KouReal/Rpc-Netty-Registry/tree/master将httpserver模块的httptask去掉,直接在httpserverhandler调用rpcproxy的call的rpcclient的invok 阅读全文

posted @ 2019-08-23 19:53 CreatorKou 阅读(307) 评论(0) 推荐(0)

eclipse快捷键失效
摘要:https://stackoverflow.com/questions/18341928/eclipse-ctrlright-does-nothing 右下角uncheck, always show welcome when startup 阅读全文

posted @ 2019-08-23 14:37 CreatorKou 阅读(96) 评论(0) 推荐(0)

git学习 branch log rebase merge fetch remote add push pull
摘要:https://www.cnblogs.com/kevingrace/p/6203433.html https://www.codercto.com/a/45325.html 一个项目push到多个远程Git仓库 github git 11.4k 次阅读 · 读完需要 7 分钟 https://ww 阅读全文

posted @ 2019-08-22 10:57 CreatorKou 阅读(148) 评论(0) 推荐(0)

泛型<?>调用<T>的方法
摘要: 阅读全文

posted @ 2019-08-19 21:46 CreatorKou 阅读(381) 评论(0) 推荐(0)

解决netty tcp自定义消息格式粘包/拆包问题
摘要:项目地址:https://github.com/KouReal/netty-study-0816 参考:https://www.cnblogs.com/sidesky/p/6913109.html 使用到的开源库:Reflections, 根据注解找到一个包下的所有类Class https://st 阅读全文

posted @ 2019-08-16 17:37 CreatorKou 阅读(600) 评论(0) 推荐(0)

多线程while(!state){}有问题,volatile优化,sleep睡着之后唤醒,刷新变量缓存
摘要:https://ask.csdn.net/questions/664596 https://www.cnblogs.com/mengdd/archive/2013/02/16/2913659.html 阅读全文

posted @ 2019-08-15 23:13 CreatorKou 阅读(269) 评论(0) 推荐(0)

玄学eclipse ,突然所有文件报错,然后,ctrl+a, ctrl+x, ctrl+v就好了
摘要:突然,eclipse报错了,所有工程文件都标记叉号: Syntax error on token "package", byte expected Syntax error on token "import", throw expected Illegal modifier for the loca 阅读全文

posted @ 2019-08-14 21:06 CreatorKou 阅读(381) 评论(0) 推荐(0)

玄学springboot applicationcontext.getBean(用类名String还是类型Class), getBean(..)的调用场景结果不同?getBean(..)还会阻塞?@DependsOn按照名称依赖,那么getBean用类名String
摘要:springContextStati是一个实现了Applicationcontextaware的类的名字,可以getBean(..)RegistryTask是一个在RegistryServer调用netty封装的channelinitializer时候,的clienthandler被触发读事件的时候 new 的 @Component @DependsOn(value={"springContex... 阅读全文

posted @ 2019-08-14 21:02 CreatorKou 阅读(887) 评论(0) 推荐(0)

玄学yml,被@ActiveProfiles注解误导
摘要:@ActiveProfiles("')来自何处?怎么用?(不要被它的名字误导) ActiveProfiles is a class-level annotation that is used to declare which active bean definition profiles shoul 阅读全文

posted @ 2019-08-14 10:50 CreatorKou 阅读(246) 评论(0) 推荐(0)

玄学yml,被@ActiveProfiles注解误导
摘要:@ActiveProfiles("')来自何处?怎么用?(不要被它的名字误导) ActiveProfiles is a class-level annotation that is used to declare which active bean definition profiles shoul 阅读全文

posted @ 2019-08-14 10:50 CreatorKou 阅读(2347) 评论(0) 推荐(1)

java动态代理,多服务实例,线程安全target,注解,面向切面修改具有注解的方法行为,ThreadLocal<Object>
摘要:项目地址:https://github.com/KouReal/dynamicserviceproxy 阅读全文

posted @ 2019-08-13 23:52 CreatorKou 阅读(256) 评论(0) 推荐(0)

java 注解不能实现aop的功能
摘要:java 注解不能实现aop的功能 https://stackoverflow.com/questions/1635108/adding-java-annotations-at-runtime https://stackoverflow.com/questions/5740101/writing-a 阅读全文

posted @ 2019-08-13 19:03 CreatorKou 阅读(188) 评论(0) 推荐(0)

操作系统角度理解bio nio aio
摘要:https://www.jianshu.com/p/ef418ccf2f7d 阅读全文

posted @ 2019-08-13 14:30 CreatorKou 阅读(160) 评论(0) 推荐(0)

springboot用Depends_ON注解控制bean的依赖关系和创建顺序,用Configuration注解类设置bean之间的关系和多例模式,实现ApplicationContextAware接口后setApplication执行的时机,和访问的自动顺序,阻止空指针异常
摘要:项目+测试+测试配置工程结构: 本测试类中没有用到src/test/resources的资源文件 如果在myconfigurations.java的car()方法上没有添加 @Scope("prototype")这个注解,那么在testscope.java中调用SpringContextUtil.g 阅读全文

posted @ 2019-08-09 16:19 CreatorKou 阅读(1916) 评论(0) 推荐(0)

导航