mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 04:55:50 +00:00
Update CrashController.java
Add Log
This commit is contained in:
parent
b1430053af
commit
c8677501d0
1 changed files with 11 additions and 0 deletions
|
@ -30,6 +30,17 @@ class CrashController {
|
||||||
|
|
||||||
@GetMapping("/oups")
|
@GetMapping("/oups")
|
||||||
public String triggerException() {
|
public String triggerException() {
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
|
System.out.println("===============================================");
|
||||||
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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue