我尝试将这个类1与类2一起使用,但是,MyIdentityMapper的泛型是错误的。我想创建一个泛型类,当我使用它(MyIdentityMapper)时,我会传递正确的类型。在这里我应该如何在MyIdentityMapper中使用泛型?1映射器类:
public class Mapper<KEYIN, VALUEIN,
我正在使用Spring的RestTemplate对REST web服务进行调用。其中一个调用是返回某个类型的对象列表。RestTemplate方法要求提供一个类参数来指示预期的返回类型。// restTemplate is type org.springframework.web.client.RestTemplate
URI restServiceURI = new URI("http://example.com