mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-05 18:11:11 +00:00
Merge 976c54d975 into cefaf55dd1
This commit is contained in:
commit
f15e0ef380
2 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -54,7 +54,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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue