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