//获取泛型的类型
ParameterizedType ptClass = (ParameterizedType)this.getClass().getGenericSuperclass(); lazz =(Class)ptClass.getActualTypeArguments()[0];