From a78b5b7b2ac6eff4462548ed523f2e01076e77f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8D=8F=E9=80=A0=E7=9A=84=E4=BF=A1=E4=BB=B0?= Date: Tue, 23 Aug 2022 05:36:29 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=A7=E8=A1=8C=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=97=B6=EF=BC=8C=E8=8B=A5=E6=96=B9=E6=B3=95=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E5=9C=A8=E4=BB=BB=E5=8A=A1=E7=9A=84=E7=88=B6=E7=B1=BB?= =?UTF-8?q?=EF=BC=8C=E5=88=99=E6=97=A0=E6=B3=95=E6=89=A7=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E5=AE=9E=E9=99=85=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E4=B8=AD=EF=BC=8C=E5=8F=AF=E8=83=BD=E4=BC=9A?= =?UTF-8?q?=E4=B8=BA=E6=89=80=E6=9C=89=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=B1=BB=E5=BB=BA=E4=B8=80=E4=B8=AA=E5=85=B1=E5=90=8C=E7=9A=84?= =?UTF-8?q?=E7=88=B6=E7=B1=BB=EF=BC=8C=E4=BB=BB=E5=8A=A1=E7=9A=84=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=85=A5=E5=8F=A3=E5=9C=A8=E7=88=B6=E7=B1=BB=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=EF=BC=8C=E4=BB=A5=E4=BE=BF=E7=AE=A1=E7=90=86=E3=80=82?= =?UTF-8?q?=E6=AD=A4=E6=97=B6=E4=BD=BF=E7=94=A8=20`getDeclaredMethod()`=20?= =?UTF-8?q?=E6=98=AF=E6=97=A0=E6=B3=95=E4=BB=8E=E5=AD=90=E7=B1=BB=E6=89=BE?= =?UTF-8?q?=E5=88=B0=E8=A6=81=E6=89=A7=E8=A1=8C=E7=9A=84=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=9A=84=EF=BC=8C=E8=80=8C=E6=98=AF=E8=A6=81=E6=8D=A2=E7=94=A8?= =?UTF-8?q?=20`getMethod()`=20=E6=96=B9=E6=B3=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 捏造的信仰 --- .../src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java index 663b4a1..57808fa 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java @@ -52,12 +52,12 @@ public class JobInvokeUtil { if (StringUtils.isNotNull(methodParams) && methodParams.size() > 0) { - Method method = bean.getClass().getDeclaredMethod(methodName, getMethodParamsType(methodParams)); + Method method = bean.getClass().getMethod(methodName, getMethodParamsType(methodParams)); method.invoke(bean, getMethodParamsValue(methodParams)); } else { - Method method = bean.getClass().getDeclaredMethod(methodName); + Method method = bean.getClass().getMethod(methodName); method.invoke(bean); } }