java获取泛型的真实类型
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]);