This commit is contained in:
wangliwen 2022-07-20 15:44:24 +08:00
parent dc51b673a1
commit 46a30be29a
1 changed files with 1 additions and 2 deletions

View File

@ -53,8 +53,7 @@ import java.util.stream.Collectors;
@RestController
@RequestMapping("/ability/center/v2")
public class AbilityCenterControllerV2 {
private static Integer cpuNUm = Runtime.getRuntime().availableProcessors();
private static final ExecutorService executor = Executors.newFixedThreadPool(cpuNUm);
private static final ExecutorService executor = Executors.newCachedThreadPool();
private static final Logger logger = LoggerFactory.getLogger(AbilityCenterController.class);
private static final ObjectMapper oMapper = new ObjectMapper();
@Autowired