From 277aa76e5a22f4d352603773451c492334f22649 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Mon, 28 Oct 2024 11:39:29 -0400 Subject: [PATCH] Need to add status check to get healthy upstream (#17) --- .../petclinic/system/StatusController.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main/java/org/springframework/samples/petclinic/system/StatusController.java diff --git a/src/main/java/org/springframework/samples/petclinic/system/StatusController.java b/src/main/java/org/springframework/samples/petclinic/system/StatusController.java new file mode 100644 index 0000000..858eb26 --- /dev/null +++ b/src/main/java/org/springframework/samples/petclinic/system/StatusController.java @@ -0,0 +1,16 @@ +package org.springframework.samples.petclinic.system; + +import org.springframework.http.HttpStatus; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.ResponseStatus; + +@Controller +public class StatusController { + @GetMapping("/check") + @ResponseStatus(HttpStatus.OK) + public void Check() { + // all good + } + +}