From 64b8e8cf1865399b945676ed77ae55967815db4c Mon Sep 17 00:00:00 2001 From: tianwenbo Date: Thu, 9 Mar 2023 17:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91=20XxlJobConfigura?= =?UTF-8?q?tion.java=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jero/boot/starter/job/config/XxlJobConfiguration.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jero-boot/jero-boot-starter/jero-boot-starter-job/src/main/java/com/jero/boot/starter/job/config/XxlJobConfiguration.java b/jero-boot/jero-boot-starter/jero-boot-starter-job/src/main/java/com/jero/boot/starter/job/config/XxlJobConfiguration.java index 228d2af9..7248582d 100644 --- a/jero-boot/jero-boot-starter/jero-boot-starter-job/src/main/java/com/jero/boot/starter/job/config/XxlJobConfiguration.java +++ b/jero-boot/jero-boot-starter/jero-boot-starter-job/src/main/java/com/jero/boot/starter/job/config/XxlJobConfiguration.java @@ -10,6 +10,8 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import javax.annotation.Resource; + /** * 定时任务配置 @@ -21,7 +23,7 @@ import org.springframework.context.annotation.Configuration; public class XxlJobConfiguration { - @Autowired + @Resource private XxlJobProperties xxlJobProperties; //@Bean(initMethod = "start", destroyMethod = "destroy")