mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 22:15:50 +00:00
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:
parent
3a931080d4
commit
976c54d975
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@Controller
|
@Controller
|
||||||
class CrashController {
|
class CrashController {
|
||||||
|
|
||||||
@GetMapping("/oups")
|
@GetMapping("/oops")
|
||||||
public String triggerException() {
|
public String triggerException() {
|
||||||
throw new RuntimeException(
|
throw new RuntimeException(
|
||||||
"Expected: controller used to showcase what " + "happens when an exception is thrown");
|
"Expected: controller used to showcase what " + "happens when an exception is thrown");
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<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 class="fa exclamation-triangle" aria-hidden="true"></span>
|
||||||
<span th:text="#{error}">Error</span>
|
<span th:text="#{error}">Error</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue