摘要:
application.yml quartz: corePoolSize: 10 #核心池大小 maxPoolSize: 200 #最大池大小 queueCapacity: 10 #队列容量 测试类: AsyncConfig.java(读取配置) import org.springframework 阅读全文
posted @ 2020-08-14 17:50
四叶草的诗雨
阅读(335)
评论(0)
推荐(0)
摘要:
//java8线程池 ExecutorService pool = Executors.newFixedThreadPool(4); Callable a = ()->{return findA();}; Callable b = ()->{return findB();}; Callable c 阅读全文
posted @ 2020-08-14 17:49
四叶草的诗雨
阅读(623)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) { new Thread(() -> System.out.println(Thread.currentThread().getName())).start(); } 阅读全文
posted @ 2020-08-14 17:47
四叶草的诗雨
阅读(422)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) throws InterruptedException, ExecutionException { long start = System.currentTimeMillis(); Map<String, Object> 阅读全文
posted @ 2020-08-14 16:55
四叶草的诗雨
阅读(1037)
评论(0)
推荐(0)
摘要:
List<String> retRq = new ArrayList(); List<String> retRq = new ArrayList(); List<String> finalRetRq = new ArrayList(); Optional.ofNullable(fb.get()).o 阅读全文
posted @ 2020-08-14 16:25
四叶草的诗雨
阅读(16626)
评论(0)
推荐(0)

浙公网安备 33010602011771号