![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多线程
CS打赢你
遇到的问题都会写个博客给大家分享,一起学习。
展开
-
CompletableFuture实践用法
import com.atguigu.common.utils.R; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.concurrent....原创 2021-12-16 14:44:48 · 498 阅读 · 0 评论 -
多线程CompletableFuture用法
import java.util.concurrent.*; public class ThreadTest { private static ExecutorService service = Executors.newFixedThreadPool(10); public static void main(String[] args) throws Exception { // runAsync(); // supplyAsync(); /...原创 2021-12-12 17:39:09 · 325 阅读 · 0 评论