Some changes

This commit is contained in:
Katerina881 2023-02-07 09:09:43 +04:00
parent 7093939265
commit 8f67024337

View File

@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
public class GreetingController { public class GreetingController {
@GetMapping @GetMapping("/greet")
public String greeting(@RequestParam(value = "name", defaultValue = "world") String name) { public String greeting(@RequestParam(value = "name", defaultValue = "world") String name) {
return "Hello, " + name + "!"; return "Hello, " + name + "!";
} }