Spring RestTemplate connection reset
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to consume a REST service with Spring facilities following this guide but I'm having a problem with the connection. I want to access with GET method the REST service http://date.jsontest.com/ I've written this piece of code to consume the service package pack; import static org.junit.Assert.assertTrue; import java.util.HashMap; import java.util.Map; import javax.annotation.Generated; import org.junit.Test; import org.springframework.web.client.RestTemplate; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com