spring线程池配置
spring线程池配置声明配置类配置类组件,实现AsyncConfigurer配置线程池用properties文件保存配置信息方便修改模拟业务测试控制台结果:异步执行声明配置类@Configuration//声明配置类@ComponentScan(value = "com.lianxi")//扫描组件@Import(value = {ThreadPoolExecutorConfig.class})@PropertySource(value = "classpath:threadPoolConfig
原创
2020-09-21 23:36:00 ·
1054 阅读 ·
0 评论