ThreadPoolExecutor:JDK内置线程池实现
ThreadPoolTaskExecutor:Spring对JDK中线程池做了一层封装
参考代码:https://github.com/Noneplus/ConcurrentDemo
创建一个SpringBoot项目
主类开启异步注解
/**
* 开启异步注解@EnableAsync
*/
&#
ThreadPoolExecutor:JDK内置线程池实现
ThreadPoolTaskExecutor:Spring对JDK中线程池做了一层封装
参考代码:https://github.com/Noneplus/ConcurrentDemo
创建一个SpringBoot项目
/**
* 开启异步注解@EnableAsync
*/
&#