我知道AsyncRestTemplate已经被弃用了,但不管怎样。我写这样的代码把AsyncRestTemplate和协程结合在一起,这样做对吗?suspend fun dodo(url: URL): String {
val result = AsyncRestTemplate().getForEntity(url, String:
HttpComponentsAsyncClientHttpRequestFactory asyncRequestFactory = new HttpComponentsAsyncClientHttpRequestFactory(customHttpAsyncClient);
System.out.println("start");for (in
我正在尝试使用AsyncRestTemplate,但是没有调用服务器端。如果我切换到RestTemplate,一切都会正常工作。然后我注意到当我等待回应时ListenableFuture<ResponseEntity<StringAsyncRestTemplate template = new AsyncRestTemplate(
new ConcurrentTaskExec
现在,我想将其公开/包装为AsyncRestTemplate,以利用ListenableFuture的异步语义。.);
AsyncRestTemplateasyncRestTemplate= new AsyncRestTemplate(
new HttpComponentsAsyncClientHttpRequestFacto
我正在使用AsyncRestTemplate从Springboot1.5.2服务对Google Maps进行API调用。VT, BURLINGTON, 309 College St #10的示例 @Service public ExampleAsyncRestTemplate() {
this.asyn