public class MapperUtil<T> { @Autowired protected Mapper<T> mapper; private Class<T> modelClass; public MapperUtil() { //this.modelClass = modelClass; //this.mapper=mapper; }
这个类在运行期会出现泛型擦除的情况。
参考:http://www.iteye.com/problems/88739
public class MapperUtil<T> { @Autowired protected Mapper<T> mapper; private Class<T> modelClass; public MapperUtil() { //this.modelClass = modelClass; //this.mapper=mapper; }
这个类在运行期会出现泛型擦除的情况。
参考:http://www.iteye.com/problems/88739