liubao68 commented on issue #1361: AsyncRestTemplate has deprecated in 
springframework
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1361#issuecomment-589464436
 
 
   Start from 2.0.0. java-chassis only support spring 5, it's not recommended 
to use `AsyncRestTemplate`.   Use `CompletableFuture` instead
   
   ```
   interface GetSessionOperation {
     CompletableFuture<SessionInfo> getSession(String sessionId);
   }
   ```
   
   see a example 
[here](https://github.com/apache/servicecomb-samples/pull/41/files)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to