mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-05 13:51:12 +00:00
fix duplicate method name for status endpoint
This commit is contained in:
parent
a5f0b432b1
commit
fc3249bd18
1 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,6 @@ import org.springframework.stereotype.Controller;
|
|||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
|
||||
@Controller
|
||||
class WelcomeController {
|
||||
|
||||
|
|
@ -28,9 +27,10 @@ class WelcomeController {
|
|||
public String welcome() {
|
||||
return "welcome";
|
||||
}
|
||||
|
||||
@GetMapping("/status")
|
||||
@ResponseBody
|
||||
public String welcome() {
|
||||
@ResponseBody
|
||||
public String status() {
|
||||
return "Application is running";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue