注入线程池对象 @Autowired private ThreadPoolTaskExecutor executor; 使用线程池 CompletableFuture<Video> addressFuture = CompletableFuture.runAsync(() -> { this.queryUserInfo(e);}, executor);