![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
LittleBlackTong
记录我的成长
展开
-
EurekaClient源码分析
EurekaClient 源码分析eureka 源码地址: https://github.com/Netflix/eurekaeureka 项目整合地址: https://github.com/TongBlackLittle/springCloud以下内容 参照 SpringCloud 微服务实战,进行学习记录的,我在这里根据个人理解进行了记录,欢迎大家一起交流EurekaClient 的实现关系通过注解 @EnableDiscoveryClient 进入到类内部@Target({El原创 2020-07-05 21:52:39 · 251 阅读 · 0 评论 -
HashMap 源码及运行过程
HashMap 实现原理put 方法 源码以及执行过程final V putVal(int hash, K key, V value, boolean onlyIfAbsent, boolean evict) { Node<K,V>[] tab; Node<K,V> p; int n, i; if ((tab = table) == null || (n = tab.length) == 0)原创 2020-06-29 19:21:54 · 269 阅读 · 0 评论 -
JDK8 Stream 排序,自定义排序,去重复,limit,skip
stream 练习排序 去重 过滤 限制取值排序练习 // 对象流练习 Post post1 = new Post(1, "测试内容", 1500000000001L, (byte) 0, (byte) 0); Post post2 = new Post(2, "测试内容", 1500000000002L, (byte) 0, (byte) 0); Post post3 = new...原创 2020-05-05 22:47:00 · 2612 阅读 · 0 评论 -
JDK 8 新特性 Stream map 相关
stream map 练习和 clojure 里面的 map 理解 是一样的,可以分别获取流中的每一个元素,然后在对其做一些操作map 基础练习1. 遍历字符串集合然后转换成大写字母public static void main(String[] args) { //之前的方式 List<String> names = Arrays.asList("crazy", "...原创 2020-05-05 22:41:42 · 424 阅读 · 0 评论 -
JDK8 新特性 Lambda 表达式
lambda 表达式的使用lambda 表达式概诉 () -> {} 对接口进行实现调用 “()” 中代表着接口的入参数 “{}” 中内容是接口的实现 当“()” 中的参数有切仅有一个时 “()” 本身可以省略同理“{}”当方法实现有切仅有一行时"{}"本身也可以省略使用实例声明接口public interface PersonSayMethod { public v...原创 2020-05-05 22:39:58 · 136 阅读 · 0 评论 -
反射基础练习
从入门到放弃的基础练习原创 2017-12-03 22:48:05 · 235 阅读 · 0 评论 -
反射笔记二
菜鸟 反射练习原创 2017-12-06 00:00:16 · 176 阅读 · 2 评论