SpringBoot 实践-Filter 中的异常处理和 Controller 中的异常处理_springboot捕捉进入controller之前的发生的异常-CSDN博客网友收藏

SpringBoot 实践-Filter 中的异常处理和 Controller 中的异常处理_springboot捕捉进入controller之前的发生的异常-CSDN博客

本篇主要是记录如何使用 SpringBoot 所提供的 ErrorController 这个接口能力;其内置了一个 BasicErrorController 对异常进行统一的处理,当在 Controller 发生异常的时候会自动把请求 forward 到 /error 这个请求 path 下(/error 是 SpringBoot 提供的......
阅读全文