From f69073b835f1a0c66590130e1830edcdd75ebb8a Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 02 十一月 2024 16:59:35 +0800
Subject: [PATCH] 去掉dmpvar

---
 smart-man-boot/src/main/java/com/qianwen/smartman/common/config/XxlJobConfig.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/smart-man-boot/src/main/java/com/qianwen/smartman/common/config/XxlJobConfig.java b/smart-man-boot/src/main/java/com/qianwen/smartman/common/config/XxlJobConfig.java
index f71f5a1..6fca0c2 100644
--- a/smart-man-boot/src/main/java/com/qianwen/smartman/common/config/XxlJobConfig.java
+++ b/smart-man-boot/src/main/java/com/qianwen/smartman/common/config/XxlJobConfig.java
@@ -4,9 +4,10 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Value;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
-
+@ConditionalOnProperty(prefix = "xxl.job.executor", value = "enable", matchIfMissing = true)
 @Configuration
 public class XxlJobConfig {
     private Logger logger = LoggerFactory.getLogger(XxlJobConfig.class);
@@ -36,7 +37,7 @@
         xxlJobSpringExecutor.setAccessToken(this.accessToken);
         xxlJobSpringExecutor.setLogPath(this.logPath);
         xxlJobSpringExecutor.setLogRetentionDays(this.logRetentionDays);
-        
+   
         return xxlJobSpringExecutor;
     }
 }

--
Gitblit v1.9.3