自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

转载 httpclient4

http://www.baeldung.com/httpclient4?utm_source=email-newsletter&utm_medium=email&utm_campaign=auto_14_httpclient&tl_inbound=1&tl_target_all=1&tl_period_type=3

2018-07-30 11:07:52 114

原创 hashmap源码分析

1.hashmap类结构   public class HashMap<K,V> extends AbstractMap<K,V> implements Map<K,V>, Cloneable, Serializable { 2.几个重要的值   /** * The default initial capacity - MUST be a...

2018-07-24 15:55:53 104

原创 The Best APIs are Built with Swagger Tools

1.导入依赖<!-- swagger --><dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.5.0</version&amp

2018-07-16 15:14:28 186

原创 LinkedList源码分析

transient int size = 0;//元素个数 /** * Pointer to first node. * Invariant: (first == null && last == null) || * (first.prev == null && first.item != null) */ transient Nod...

2018-07-13 17:48:52 138

原创 ArrayList源码分析

/** * Constructs an empty list with an initial capacity of ten.无参构造方法 */ public ArrayList() { this.elementData = DEFAULTCAPACITY_EMPTY_ELEMENTDATA;//默认元素为空 } /** * Shared empty array instance ...

2018-07-13 17:02:36 163

原创 lambda表达式

//lambda新建线程Thread t1 = new Thread(() -> System.out.print("heeh")); t1.start();//lambda便利String[] strs = {"bb","aa", "cc"}; List<String> list = Arrays.asList(strs); list.forEach(System.out::...

2018-07-12 19:58:20 107

原创 redisTemplate自增操作

RedisAtomicLong entityIdCounter = new RedisAtomicLong(key, redisTemplate.getConnectionFactory()); Long increment = entityIdCounter.getAndIncrement(); return increment;

2018-07-02 21:53:04 26987

原创 redis 发布与订阅 :java,以及键过期时间监控

package com.example.demo.RedisPubSubAndListener; import redis.clients.jedis.JedisPubSub; public class PubSubScriber extends JedisPubSub { //订阅消息的处理类 @Override public void onMessage(Strin...

2018-07-02 21:37:09 1124

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除