瀏覽代碼

update 修复 thread-pool: enabled 配置不生效问题

疯狂的狮子li 3 年之前
父節點
當前提交
28fa991fc2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-framework/src/main/java/com/ruoyi/framework/config/ThreadPoolConfig.java

+ 1 - 1
ruoyi-framework/src/main/java/com/ruoyi/framework/config/ThreadPoolConfig.java

@@ -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());