2019年11月14日
摘要: 1、stream创建 // 1、可以通过collection系列集合 stream(串行)、parallelStream(并行) List<String> list = new ArrayList<String>(); Stream<String> stream1 = list.stream(); 阅读全文
posted @ 2019-11-14 00:36 牛鼻子老赵 阅读(274) 评论(0) 推荐(0)
  2019年11月12日
摘要: 1、消费型接口 package com.zh.lambda; import java.util.function.Consumer; import org.junit.Test; /** * @desc Consumer<T>消费型接口 * @author zhanh247 */ public cl 阅读全文
posted @ 2019-11-12 22:26 牛鼻子老赵 阅读(670) 评论(0) 推荐(0)
摘要: 1、无参、无返回值 @Test public void test00() { Runnable r1 = new Runnable() { @Override public void run() { System.out.println("Lambda01.test01().new Runnable 阅读全文
posted @ 2019-11-12 22:11 牛鼻子老赵 阅读(1848) 评论(0) 推荐(0)
摘要: 1、构建一个lis集合类 private static List<Integer> lists = new ArrayList<Integer>(); @Before public void test0() { for (int i = 0; i <= 101; i++) { lists.add(i 阅读全文
posted @ 2019-11-12 16:09 牛鼻子老赵 阅读(13761) 评论(0) 推荐(0)
  2019年10月31日
摘要: 三种实现分布式锁的方式 https://blog.csdn.net/wuzhiwei549/article/details/80692278 阅读全文
posted @ 2019-10-31 16:34 牛鼻子老赵 阅读(130) 评论(0) 推荐(0)
  2019年10月30日
摘要: Zabbix 3.0 从入门到精通(zabbix使用详解) https://www.cnblogs.com/clsn/p/7885990.html 阅读全文
posted @ 2019-10-30 14:20 牛鼻子老赵 阅读(113) 评论(0) 推荐(0)
摘要: 利用MemoryAnalyzer进行OutOfMemoryError的诊断分析 https://blog.csdn.net/AlbertFly/article/details/51446943 性能分析工具之-- Eclipse Memory Analyzer tool(MAT)(二) https: 阅读全文
posted @ 2019-10-30 11:00 牛鼻子老赵 阅读(325) 评论(0) 推荐(0)
  2019年10月22日
摘要: java7 内存结构 http://www.choupangxia.com/2019/10/18/jvm之内存结构详解/ java8 内存结构 https://www.cnblogs.com/secbro/p/11718987.html 阅读全文
posted @ 2019-10-22 14:46 牛鼻子老赵 阅读(252) 评论(0) 推荐(0)
摘要: 1、Java 中的四种引用 https://www.cnblogs.com/death00/p/11718771.html 2、mvcc https://mp.weixin.qq.com/s/Jeg8656gGtkPteYWrG5_Nw 3、解决json中存在新增多余字段的问题 https://bl 阅读全文
posted @ 2019-10-22 13:53 牛鼻子老赵 阅读(111) 评论(0) 推荐(0)
  2019年10月18日
摘要: 处理很多大数据量插入重复数据有唯一键时使用,这种用法只能用于mysql中,其他数据库不适用 1、在xml文件中常用写法: 2、在java代码中常用拼sql的方式实现: 3、直接在客户端上使用时可以通过过: 4、有些情况可以忽略主键,如果存在则不插入: 注:生产中发现使用 updae 更新数据2000 阅读全文
posted @ 2019-10-18 09:12 牛鼻子老赵 阅读(1011) 评论(0) 推荐(0)