查一下jdk就成了吧?
Class.getDeclaredConstructor(new Class[]{}).newInstance(new Object[]{}) Class-----
Constructor:getDeclaredConstructor(Class[] parameterTypes)
Returns a Constructor object that reflects the specified constructor of the class or interface represented by this Class object. Constructor----
Object:newInstance(Object[] initargs)
Uses the constructor represented by this Constructor object to create and initialize a new instance of the constructor's declaring class, with the specified initialization parameters.
Class.getDeclaredConstructor(new Class[]{}).newInstance(new Object[]{}) Class-----
Constructor:getDeclaredConstructor(Class[] parameterTypes)
Returns a Constructor object that reflects the specified constructor of the class or interface represented by this Class object. Constructor----
Object:newInstance(Object[] initargs)
Uses the constructor represented by this Constructor object to create and initialize a new instance of the constructor's declaring class, with the specified initialization parameters.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货