//得到泛型的Class private Class<T> entityClass = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
原文地址:https://www.cnblogs.com/sdu-Jumper/p/12031997.html
时间: 2024-11-09 17:17:37
//得到泛型的Class private Class<T> entityClass = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
原文地址:https://www.cnblogs.com/sdu-Jumper/p/12031997.html