摘要: 一、配置 @Configuration @EnableAsync //启用异步任务 public class ThreadPoolConfig { @Bean("taskExecutor") public ThreadPoolTaskExecutor executor(){ ThreadPoolTa 阅读全文
posted @ 2022-07-14 16:24 生生灯火半杯月 阅读(328) 评论(0) 推荐(0)
摘要: @RunWith(SpringRunner.class) @SpringBootTest(classes = com.aa.Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public cl 阅读全文
posted @ 2022-07-14 15:18 生生灯火半杯月 阅读(71) 评论(0) 推荐(0)