Skip to content

Commit

Permalink
to #64
Browse files Browse the repository at this point in the history
  • Loading branch information
flystar32 committed Jan 12, 2022
1 parent 9f955ce commit 9bf17f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class AController {
InetUtils inetUtils;

@GetMapping("/b")
public String a(HttpServletRequest request) {
public String b(HttpServletRequest request) {
return "B"+SERVICE_TAG+"[" + inetUtils.findFirstNonLoopbackAddress().getHostAddress() + "]" + " -> " +
restTemplate.getForObject("http://sc-C/c", String.class);
// return "B[" + request.getLocalAddr() + "]";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AController {
InetUtils inetUtils;

@GetMapping("/c")
public String a(HttpServletRequest request) {
public String c(HttpServletRequest request) {
return "C" + SERVICE_TAG + "[" + inetUtils.findFirstNonLoopbackAddress().getHostAddress() + "]";
}
}
Expand Down

0 comments on commit 9bf17f7

Please sign in to comment.