mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 20:45: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")
|
||||
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(
|
||||
"Expected: controller used to showcase what " + "happens when an exception is thrown");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue