摘要: 1、mac版本安装zooKeeper 参考:https://blog.csdn.net/whereismatrix/article/details/50420099 2、连接远程zk 参考:https://www.cnblogs.com/dragon-L/p/8532801.html 阅读全文
posted @ 2018-09-11 17:03 fight-ing 阅读(5582) 评论(0) 推荐(0) 编辑
摘要: 安装步骤: 1、点击工具栏File 2、点击Setting 3、点击Plugin 4、点击Install Plugin From disk 5、弹出对话框,找到你下载的插件 1、点击工具栏File 2、点击Setting 3、点击Plugin 4、点击Install Plugin From disk 阅读全文
posted @ 2018-09-11 14:01 fight-ing 阅读(4033) 评论(0) 推荐(0) 编辑
摘要: Mac键盘符号和修饰键说明 ⌘ Command ⇧ Shift ⌥ Option ⌃ Control 大小写切换 ⌘ + ⇧ + U 生成代码块(Surround) ⌘ + ⌥ + T 生成代码块(Generate) ⌃ + N 阅读全文
posted @ 2018-09-11 14:00 fight-ing 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 下面两段代码的输出: 字面量输出:JD new对象输出:OKJD 为什么呢?他俩的区别就是,执行static块!!那么什么时候会执行 static 块呢?答案肯定是 类加载的时候。通过简单的结论:字面量当外部类,未加载类。 那么问题又来了,为什么未加载呢?这个时候,编译器常量 应该可以解除你的疑惑。 阅读全文
posted @ 2018-09-11 13:43 fight-ing 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 面向对象设计原则介绍: https://blog.csdn.net/u012613903/article/details/72818255 阅读全文
posted @ 2018-08-31 10:01 fight-ing 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 结果如下: list.retainAll 消耗时间(数量:10):1Sets.intersection消耗时间(数量:10):52list.retainAll 消耗时间(数量:100):1Sets.intersection消耗时间(数量:100):0list.retainAll 消耗时间(数量:10 阅读全文
posted @ 2018-08-29 20:49 fight-ing 阅读(5429) 评论(0) 推荐(1) 编辑
摘要: 如果递归的是深而不广的树时,应该使用队列来优化递归;如果递归是广而不深的树的时候,就应该用递归来优化队列。 https://blog.csdn.net/pseudonym_/article/details/71600084?utm_source=itdadao&utm_medium=referral 阅读全文
posted @ 2018-08-28 13:50 fight-ing 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 首先springboot跨域设置: https://www.baeldung.com/spring-cors http://www.ruanyifeng.com/blog/2016/04/cors.html https://blog.csdn.net/yin138/article/details/7 阅读全文
posted @ 2018-08-10 11:47 fight-ing 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 场景:一个枚举,我需要返回字典列表 要求1:对枚举类型进行转化 要求2:返回的值,根据 key 升序排列 话不多说,直接撸代码 EnumTest.java 内容如下: TestMain.java 使用 guava 强大的功能,可以使代码变得更加简洁!!! 参考:http://www.91r.net/ 阅读全文
posted @ 2018-08-01 01:12 fight-ing 阅读(2574) 评论(0) 推荐(0) 编辑
摘要: 第一步: 首先你需要先安装 office2016. 安装完成,不要登陆, 第二步: //破解软件地址,下载打开,无脑下一步即可链接:https://pan.baidu.com/s/1dE4pl41密码:tfdw 备用地址: 链接:https://pan.baidu.com/s/1S6rWcHLleL 阅读全文
posted @ 2018-05-18 14:01 fight-ing 阅读(272) 评论(0) 推荐(0) 编辑
Fork me on GitHub