macrozheng
May 7, 2021 · Backend Development
Customizing Spring Boot Error Handling for Non‑Controller Exceptions
This guide explains why Spring Boot’s default @ControllerAdvice cannot catch servlet‑level errors, introduces the ErrorPageFilter mechanism, and shows how to replace the BasicErrorController with a custom ExceptionController that rethrows errors for unified handling across the application.
BackendCustom ErrorControllerError Handling
0 likes · 7 min read
