From 976c54d9751a38124fde2878c09235951410e75e Mon Sep 17 00:00:00 2001 From: Sankalp Date: Sun, 1 Jun 2025 19:34:00 +0530 Subject: [PATCH] Changed crash controller mapping from oups to oops as well as in the layout.html as well Signed-off-by: Sankalp --- .../samples/petclinic/system/CrashController.java | 2 +- src/main/resources/templates/fragments/layout.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/samples/petclinic/system/CrashController.java b/src/main/java/org/springframework/samples/petclinic/system/CrashController.java index 2b28600fd..d567b5ca6 100644 --- a/src/main/java/org/springframework/samples/petclinic/system/CrashController.java +++ b/src/main/java/org/springframework/samples/petclinic/system/CrashController.java @@ -28,7 +28,7 @@ import org.springframework.web.bind.annotation.GetMapping; @Controller class CrashController { - @GetMapping("/oups") + @GetMapping("/oops") public String triggerException() { throw new RuntimeException( "Expected: controller used to showcase what " + "happens when an exception is thrown"); diff --git a/src/main/resources/templates/fragments/layout.html b/src/main/resources/templates/fragments/layout.html index 34e0a5496..07c8285ec 100644 --- a/src/main/resources/templates/fragments/layout.html +++ b/src/main/resources/templates/fragments/layout.html @@ -62,7 +62,7 @@
  • + th:replace="~{::menuItem ('/oops','error','trigger a RuntimeException to see how it is handled','exclamation-triangle',#{error})}"> Error