同类内方法,不能用async注解一开始我直接显式创建的线程,然后start。但是阿里巴巴的插件告诉我让我用线程池。ExecutorService executorService = Executors.newFixedThreadPool(10);executorService.execute(() -> {去缓慢删数据});});
但是这个线程池要怎么关啊?
放着就行,它不会报错的🌚🌚🌚
executorService.shutdown();