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

Merge pull request !700 from Nymph2333/N/A
This commit is contained in:
若依 2023-04-10 09:32:01 +00:00 committed by Gitee
commit f7595e4998
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}