Unverified Commit f7595e49 authored by 若依's avatar 若依 Committed by Gitee

!700 newInstance() 已弃用,使用clazz.getDeclaredConstructor().newInstance()

Merge pull request !700 from Nymph2333/N/A
parents 64e71302 af0e0a11
...@@ -34,7 +34,7 @@ public class JobInvokeUtil ...@@ -34,7 +34,7 @@ public class JobInvokeUtil
} }
else else
{ {
Object bean = Class.forName(beanName).newInstance(); Object bean = Class.forName(beanName).getDeclaredConstructor().newInstance();
invokeMethod(bean, methodName, methodParams); invokeMethod(bean, methodName, methodParams);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment