上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页
摘要: package com.duchong.concurrent; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Exchanger; /** * Exchanger用于进行线程间的数据交换。 阅读全文
posted @ 2019-09-18 12:52 npe0 阅读(330) 评论(0) 推荐(0)
摘要: 一、CountDownLatchDemo 二、CyclicBarrierDemo 阅读全文
posted @ 2019-09-18 12:41 npe0 阅读(2469) 评论(0) 推荐(0)
摘要: 1 package com.duchong.demo.demox.hutool.threadpool; 2 3 import com.google.common.util.concurrent.ThreadFactoryBuilder; 4 5 import java.util.ArrayList; 6 import java.util.List; 7 import java.util.concu 阅读全文
posted @ 2019-09-05 09:19 npe0 阅读(1072) 评论(0) 推荐(0)
摘要: /** * 全局设置 * */ @Configuration public class CustomCorsConfiguration2 extends WebMvcConfigurerAdapter { @Override public void addCorsMappings(CorsRegistry registry) { registry... 阅读全文
posted @ 2019-07-25 21:02 npe0 阅读(699) 评论(0) 推荐(0)
摘要: 一、找加速地址 https://promotion.aliyun.com/ntms/act/kubernetes.html 控制台 二、添加daemon.json 文件 三、reload和restart 阅读全文
posted @ 2019-07-12 00:32 npe0 阅读(3207) 评论(0) 推荐(0)
摘要: 一、要求 docker-ce 要求系统是7版本 二、替换源 docker-ce.repo文件在/etc/yum.repos.d/下,建议将docker官方下载地址全部替换成aliyun替换后的完整文件为: [docker-ce-stable] name=Docker CE Stable - $bas 阅读全文
posted @ 2019-07-12 00:00 npe0 阅读(438) 评论(0) 推荐(0)
摘要: 如果不也不想用mvn install xxxxxx 后面跟一大堆的东东,可以让eclipse替代完成导入,看下图 File >Import 大功告成,可见eclipse还没有废掉,至少现在IDEA还没有这个功能。 阅读全文
posted @ 2019-07-09 21:44 npe0 阅读(1283) 评论(0) 推荐(0)
摘要: 线程池执行过程 提交一个任务到线程池中,线程池的处理流程如下: 1、判断线程池里的核心线程是否都在执行任务,如果不是(核心线程空闲或者还有核心线程没有被创建)则创建一个新的工作线程来执行任务。如果核心线程都在执行任务,则进入下个流程。 2、线程池判断工作队列是否已满,如果工作队列没有满,则将新提交的 阅读全文
posted @ 2019-07-09 16:46 npe0 阅读(5296) 评论(0) 推荐(0)
摘要: //获取相同用户名的数据 select name,Count(name) from user group by name having Count(name) >1 //删除相同的数据,保留最大的id或者最小的id min(id) delete from user where id not in(select max(id) from user group by name) 阅读全文
posted @ 2019-06-06 14:21 npe0 阅读(3745) 评论(0) 推荐(0)
摘要: package com.duchong.aar.reflect.T; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.List; import java.util.Map; public cl... 阅读全文
posted @ 2019-06-04 22:48 npe0 阅读(273) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页