12 Commits

Author SHA1 Message Date
Nymph2333
af0e0a110e
newInstance() 已弃用,使用clazz.getDeclaredConstructor().newInstance()
This method propagates any exception thrown by the nullary constructor, including a checked exception. Use of this method effectively bypasses the compile-time exception checking that would otherwise be performed by the compiler. The Constructor.newInstance method avoids this problem by wrapping any exception thrown by the constructor in a (checked) InvocationTargetException.
The call
 clazz.newInstance()
can be replaced by
 clazz.getDeclaredConstructor().newInstance()
The latter sequence of calls is inferred to be able to throw the additional exception types InvocationTargetException and NoSuchMethodException. Both of these exception types are subclasses of ReflectiveOperationException.

Signed-off-by: Nymph2333 <498092988@qq.com>
2023-04-10 06:27:40 +00:00
RuoYi
5873da87ae 屏蔽定时任务bean违规的字符 2023-02-04 22:25:33 +08:00
捏造的信仰
a78b5b7b2a
修复执行任务时,若方法入口在任务的父类,则无法执行的问题
实际项目开发中,可能会为所有定时任务类建一个共同的父类,任务的执行入口在父类定义,以便管理。此时使用 `getDeclaredMethod()` 是无法从子类找到要执行的方法的,而是要换用 `getMethod()` 方法。

Signed-off-by: 捏造的信仰 <yiding.he@gmail.com>
2022-08-23 05:36:29 +00:00
RuoYi
250c5ba226 优化任务过期不执行调度 2022-07-29 20:28:59 +08:00
RuoYi
2a9beec31d 检查定时任务bean所在包名是否为白名单配置 2022-04-16 22:06:25 +08:00
RuoYi
e62e8e372c 组件ImageUpload支持多图同时选择上传 2022-02-25 09:08:56 +08:00
RuoYi
9bd7509e87 添加新群号:264312783 2022-01-11 09:02:16 +08:00
RuoYi
1a5b024df6 定时任务目标字符串验证包名白名单 2022-01-06 14:50:56 +08:00
RuoYi
2743785aaf 修复多参数逗号分隔的问题 2021-12-13 10:11:34 +08:00
RuoYi
2ab96587ef 任务参数忽略双引号中的逗号 2021-11-16 16:05:15 +08:00
Sxile
be778ba370 修复参数注释 2020-07-23 14:54:11 +08:00
RuoYi
cee572f237 若依 3.0 2020-07-19 10:25:40 +08:00