From cd68af99afa12089a76365c7a4336509c355b2d4 Mon Sep 17 00:00:00 2001 From: lizhen Date: Wed, 18 Dec 2019 17:54:10 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E8=8E=B7=E5=8F=96XxlJob=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3=E6=96=B9=E6=B3=95=E6=97=B6=EF=BC=8C=E9=9D=9E=E5=8D=95?= =?UTF-8?q?=E4=BE=8Bbean=E5=BC=95=E5=8F=91=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xxl/job/core/executor/impl/XxlJobSpringExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/executor/impl/XxlJobSpringExecutor.java b/xxl-job-core/src/main/java/com/xxl/job/core/executor/impl/XxlJobSpringExecutor.java index e1c89563..02b2e079 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/executor/impl/XxlJobSpringExecutor.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/executor/impl/XxlJobSpringExecutor.java @@ -81,7 +81,7 @@ public class XxlJobSpringExecutor extends XxlJobExecutor implements ApplicationC return; } // init job handler from method - String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames(); + String[] beanDefinitionNames = applicationContext.getBeanNamesForType(Object.class, false, true); for (String beanDefinitionName : beanDefinitionNames) { Object bean = applicationContext.getBean(beanDefinitionName);