Class
// 反射
public BaseServiceImpl() {
Type type = this.getClass().getGenericSuperclass();
ParameterizedType ptype = (ParameterizedType) type;
this.clazz = (Class<T>) ptype.getActualTypeArguments()[0];
}
标签:ice tac csu argument etc arguments logs type gen
Class
// 反射
public BaseServiceImpl() {
Type type = this.getClass().getGenericSuperclass();
ParameterizedType ptype = (ParameterizedType) type;
this.clazz = (Class<T>) ptype.getActualTypeArguments()[0];
}
标签:ice tac csu argument etc arguments logs type gen
原文地址:https://www.cnblogs.com/sidekick/p/8343762.html