@GetMapping("/")
ResponseEntity<String> showCodeCouple(){
HttpHeaders headers = new HttpHeaders();
headers.set("Accept", MediaType.APPLICATION_JSON_VALUE);
HttpEntity<?> entity = new HttpEntity<>(headers);
return restTemplate.exchange(
"http://producer-service/",
HttpMethod.GET,
entity,
String.class);
}
ConsumerController.java 文件源码
java
阅读 48
收藏 0
点赞 0
评论 0
项目:Spring-Boot-Examples
作者:
评论列表
文章目录