Changed crash controller mapping from oups to oops as well as in the layout.html as well

Signed-off-by: Sankalp <sankalps63.ss@gmail.com>
This commit is contained in:
Sankalp 2025-06-01 19:34:00 +05:30
parent 3a931080d4
commit 976c54d975
2 changed files with 2 additions and 2 deletions

View file

@ -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");

View file

@ -62,7 +62,7 @@
</li>
<li
th:replace="~{::menuItem ('/oups','error','trigger a RuntimeException to see how it is handled','exclamation-triangle',#{error})}">
th:replace="~{::menuItem ('/oops','error','trigger a RuntimeException to see how it is handled','exclamation-triangle',#{error})}">
<span class="fa exclamation-triangle" aria-hidden="true"></span>
<span th:text="#{error}">Error</span>
</li>