摘要: 统一响应类 import com.fasterxml.jackson.annotation.JsonInclude; import com.sangeng.enums.AppHttpCodeEnum; import java.io.Serializable; @JsonInclude(JsonInc 阅读全文
posted @ 2023-08-10 22:12 Mr_sven 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1、AND组合关系 thenCombine / thenAcceptBoth / runAfterBoth都表示:「当任务一和任务二都完成再执行任务三」。 区别在于: 「runAfterBoth」 不会把执行结果当做方法入参,且没有返回值 「thenAcceptBoth」: 会将两个任务的执行结果作 阅读全文
posted @ 2023-08-10 21:44 Mr_sven 阅读(79) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; public static void main(String[] args) throws Interrupt 阅读全文
posted @ 2023-08-10 21:32 Mr_sven 阅读(33) 评论(0) 推荐(0) 编辑