Some changes
This commit is contained in:
parent
7093939265
commit
8f67024337
@ -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 + "!";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user