我在Spring3.0中遇到了一个关于RestTemplate的问题。当我尝试请求Google app Engine应用程序中的其他应用程序时,它超时了5秒。
我的客户端应用程序和服务器应用程序都在Google App Engine中,
以下是客户端代码:
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发布于 2011-11-25 04:17:28
网络连接正常吗?我认为你只能在以后处理异常和回溯。
https://stackoverflow.com/questions/8261894
复制相似问题