对RestTemplate的调用永远不会返回

时间:2014-12-19 01:38:49

标签: java linux spring spring-security

我正在使用Centos机器使用以下代码运行java程序:

log.debug("Making call using RestTemplate.");
RestTemplate restTemplate = new RestTemplate();
log.debug("Returning from call using RestTemplate.");

从Eclipse中的日志和步骤调试中,我可以验证调用new RestTemplate()永远不会返回。这个相同的代码适用于其他Centos机器,但我的永远不会返回。我尝试以root用户身份运行,但这并没有解决问题。不确定这是一个Spring问题,Linux问题还是两者兼而有之?

0 个答案:

没有答案
相关问题