From 8f67024337ffb793782f4d7c7cecf0197ac9975e Mon Sep 17 00:00:00 2001 From: Katerina881 Date: Tue, 7 Feb 2023 09:09:43 +0400 Subject: [PATCH] Some changes --- src/main/java/np/something/controllers/GreetingController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/np/something/controllers/GreetingController.java b/src/main/java/np/something/controllers/GreetingController.java index 4966cea..19be9ec 100644 --- a/src/main/java/np/something/controllers/GreetingController.java +++ b/src/main/java/np/something/controllers/GreetingController.java @@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RestController; @RestController public class GreetingController { - @GetMapping + @GetMapping("/greet") public String greeting(@RequestParam(value = "name", defaultValue = "world") String name) { return "Hello, " + name + "!"; }