摘要: Class#newInstance方法已经被弃用了,从注释中可以看到推荐使用Constructor#newInstance方法生成实例,即直接通过构造方法生成实例: // getConstructor 方法入参是可变长参数列表,对应类中构造方法的入参类型,这里使用无参构造。 // newInstan 阅读全文
posted @ 2020-12-15 09:31 qianbuhan 阅读(618) 评论(0) 推荐(0)