我想使用Spring3.1REST模板异步调用restwebservice调用。目前我们使用Resttemplate.getForObject方法来调用rest we服务。现在,根据需求,我们必须在调用现有方法的同时调用另一个webservice方法。我们通过实例化方法类从EJB2.1无状态会话bean中调用此方法调用。template = new RestTemplate();
public ArrayL
应用程序正在使用Spring rest模板调用and服务,而我正在使用restTemplate.exchage(url) to call the webservice.Currently we are not passing any timeout value for this webservice call, How can i set a timeout valuefor Spring Rest template.
我必须调用RESTwebservice,并且我计划使用RestTemplate。我查看了有关如何发出GET请求的示例,它们如下所示。String result = restTemplate.getForObject("http://example.com/hotels/{hotel}/bookings/{booking}", String.class在这种情况下如何使用<