mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 修复 thread-pool: enabled 配置不生效问题
This commit is contained in:
		@@ -26,7 +26,7 @@ public class ThreadPoolConfig {
 | 
			
		||||
    private ThreadPoolProperties threadPoolProperties;
 | 
			
		||||
 | 
			
		||||
    @Bean(name = "threadPoolTaskExecutor")
 | 
			
		||||
    @ConditionalOnProperty(prefix = "threadPoolTaskExecutor", name = "enabled", havingValue = "true")
 | 
			
		||||
    @ConditionalOnProperty(prefix = "thread-pool", name = "enabled", havingValue = "true")
 | 
			
		||||
    public ThreadPoolTaskExecutor threadPoolTaskExecutor() {
 | 
			
		||||
        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
 | 
			
		||||
        executor.setMaxPoolSize(threadPoolProperties.getMaxPoolSize());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user