反射中newinstance方法Deprecated的替代

clazz.getDeclaredConstructor().newInstance()

猜你喜欢

转载自blog.csdn.net/weixin_42396963/article/details/86502930