mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-04 21:31:11 +00:00
Merge fc3249bd18 into ab1d5364a0
This commit is contained in:
commit
3b3c9889ac
1 changed files with 7 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ package org.springframework.samples.petclinic.system;
|
|||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
@Controller
|
||||
class WelcomeController {
|
||||
|
|
@ -27,4 +28,10 @@ class WelcomeController {
|
|||
return "welcome";
|
||||
}
|
||||
|
||||
@GetMapping("/status")
|
||||
@ResponseBody
|
||||
public String status() {
|
||||
return "Application is running";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue