Skip to content

Commit

Permalink
fix(provider): fix the content returned by sayHello interface
Browse files Browse the repository at this point in the history
- Removed environment variable acquisition logic
- Modify the return value to the request parameter name
  • Loading branch information
SweetWuXiaoMei committed Oct 25, 2024
1 parent fae1f3b commit 3686491
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public void setEnvironment(Environment environment) {
// a very simple service to echo the request parameter
@GetMapping("/sayHello")
public String sayHello(@RequestParam("name") String name) {
return "Hello " + environment.getProperty("servicecomb.rest.address");
// return "Hello " + environment.getProperty("servicecomb.rest.address");
return "Hello " + name;
}

@GetMapping("/getConfig")
Expand Down

0 comments on commit 3686491

Please sign in to comment.