!700 newInstance() 已弃用,使用clazz.getDeclaredConstructor().newInstance()
Merge pull request !700 from Nymph2333/N/A
This commit is contained in:
commit
f7595e4998
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user