YYKI commented on issue #1602: 请教,highway通信模式下是否可以指定ip访问特定实例的接口
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1602#issuecomment-594353316
 
 
   提issue前,网上有的资料基本是都看了下的,有些地方确实不太理解,经过本地测试,再确认一个问题
   1、只提供rest通信
   ```
   microservice.yaml
   rest:
       address: 0.0.0.0:8080 # 服务REST端口
   ```
   
   
2、只提供highway通信,不支持restTemplate.postForObject("http://ip:port/method?name=Java";, 
null, String.class)访问形式;
   ```
   microservice.yaml
   highway:
       address: 0.0.0.0:8080 # 服务highway端口
   ```
   
   3、两种通信方式都提供
   ```
   microservice.yaml
   highway:
       address: 0.0.0.0:8080 # 服务highway端口
   rest:
       address: 0.0.0.0:8081 # 服务REST端口
   ```
   
   
   
   

----------------------------------------------------------------
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