我正在使用
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate;
URI uriScopeDep;
try {
uriScopeDep = new URI(scriptUrl);
HttpHeaders httpHeaders = new HttpHeaders();
HttpEntity entity = new HttpEntity(httpHeaders);
String body = restTemplate.exchange(uriScopeDep,
HttpMethod.GET, entity, String.class).getBody();
...
在JRE 8中调用这么多请求花了30秒。 在JRE 10中,花了9分钟以上! 有人可以解决速度慢的问题吗?