1.使用 CompletableFuture.runAsync方法异步执行 try { CompletableFuture.runAsync(() -> { if (CollectionUtil.isNotEmpty(updateSysStaffs)) { ypInternalProxyService.newStaffImport(syncDTOS); } }); } catch (Exception e) { log.error( e.getMessage()); }