在java9开始就newInstance()方法就已经显示已过时
使用的替代 .getDeclaredConstructor().newInstance()
Properties properties = new Properties();
properties.load(new FileInputStream("src/re.properties"));
String classname = properties.get("classfullpath").toString();
String method = properties.get("method").toString();
Class Cla = Class.forName(classname);
Object o = Cla.getDeclaredConstructor().newInstance();
Method method1 = Cla.getMethod(method);
method1.invoke(o);