SpringCloud 应用之间的通讯

有2种方式:html 1.经过  restTemlate方式spring 直接restTemplate对象。将url写死便可。 RestTemplate restTemplate = new RestTemplate(); String response = restTemplate.getForObject("http://localhost:8080/msg", String.class);
相关文章
相关标签/搜索