我在使用Spring 3.0中的RestTemplate時遇到問題。 當我試圖要求在谷歌appengine應用程序中的其他應用程序它超時5秒。ResourceAccessException:I/O錯誤:獲取時超時:RestTemplate
我的客戶端應用程序和服務器應用程序都是在谷歌應用程序引擎,
下面是客戶端代碼:
RestTemplate restTemplate = new RestTemplate();
restTemplate.postForObject(pUrl , paramObj , String.class)
例外:
org.springframework.web.client.ResourceAccessException: I/O error: Timeout while fetching: http://naresh-app.appspot.com/HistoryAction/getHistory.json; nested exception is java.net.SocketTimeoutException: Timeout while fetching: http://naresh-app.appspot.com/HistoryAction/getHistory.json
任何幫助嗎?
在此先感謝。:)
你設置套接字超時的東西真的低? – dmon