heyile commented on issue #1602: 请教,highway通信模式下是否可以指定ip访问特定实例的接口
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1602#issuecomment-594369592
 
 
   抱歉, 有个地方会错意了.. 
   
   ```java
   
   // 这种方式可以通过设置配置, 偏好走 highway 或者rest. 
       String sayHiResult =
           
restTemplate.postForObject("cse://springmvc/springmvchello/sayhi?name=Java 
Chassis", null, String.class);
   // 这种方式走的 RestTemplate原生的逻辑, 无法走 highway
       String sayHiResult2 =
           
restTemplate.postForObject("http://ip:8080/springmvchello/sayhi?name=Java 
Chassis", null, String.class);
   
   ```
   

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