摘要: 1、 supplyAsync方法需要一个Supplier函数接口,通常用于执行异步计算 CompletableFuture<String> future = CompletableFuture.supplyAsync(() -> { dosomething("处理事务"); return "结果"; 阅读全文
posted @ 2024-09-26 11:10 秋水秋色 阅读(221) 评论(0) 推荐(0) 编辑