You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/07/29 07:25:11 UTC

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1720: CSE支持本地调用模式吗

liubao68 commented on issue #1720:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1720#issuecomment-664850974


   参考: https://docs.servicecomb.io/java-chassis/zh_CN/general-development/context/
   
   调用的时候,指定 Endpoint 为 localhost 即可。 
   
   ```
   InvocationContext invocationContext = new InvocationContext();
       invocationContext.addLocalContext(LoadbalanceHandler.SERVICECOMB_SERVER_ENDPOINT, parseEndpoint(endpoint));
       Date date = new Date();
       TestMgr.check(date.getTime(), dateTimeSchemaWithContextInf.getDate(invocationContext, date).getTime());
   ```


----------------------------------------------------------------
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:
users@infra.apache.org