ParameterizedType type = (ParameterizedType)this.getClass().getGenericSuperclass();
Type[] actualTypes = type.getActualTypeArguments();
clazz = Class(actualTypes[0]);
ParameterizedType type = (ParameterizedType)this.getClass().getGenericSuperclass();
Type[] actualTypes = type.getActualTypeArguments();
clazz = Class(actualTypes[0]);
转载于:https://www.cnblogs.com/heml/p/4921615.html