Skip to content

Commit

Permalink
Add echo path
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiaofeng committed Jun 3, 2024
1 parent b3a16f5 commit f082384
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class EchoController {
@Resource
private FeignService feignService;

@GetMapping("/echo-rest/{str}")
@GetMapping({"/echo-rest/{str}","/echo/{str}"})
public String echoRest(@PathVariable String str, HttpServletRequest request) {
String message = restService.echo(str);
return new EchoResponse("spring-consumer", "header", request::getHeader, message).toString();
Expand Down

0 comments on commit f082384

Please sign in to comment.