@Async与CompletableFuture的使用

    技术2025-05-20  43

    一、@Async实现异步调用

    1、开启Async的支持,在启动类上加上如下注解 2、编写测试demo 3、使用junit进行测试

    二、CompletableFuture的使用

    1、编写测试demo 2、进行单元测试

    Processed: 0.009, SQL: 9