Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
f7595e49
Unverified
Commit
f7595e49
authored
Apr 10, 2023
by
若依
Committed by
Gitee
Apr 10, 2023
Browse files
!700 newInstance() 已弃用,使用clazz.getDeclaredConstructor().newInstance()
Merge pull request !700 from Nymph2333/N/A
parents
64e71302
af0e0a11
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java
View file @
f7595e49
...
...
@@ -34,7 +34,7 @@ public class JobInvokeUtil
}
else
{
Object
bean
=
Class
.
forName
(
beanName
).
newInstance
();
Object
bean
=
Class
.
forName
(
beanName
).
getDeclaredConstructor
().
newInstance
();
invokeMethod
(
bean
,
methodName
,
methodParams
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment