Spring 统一异常处理有 3 种方式,分别为:使用@ ExceptionHandler注解、实现HandlerExceptionResolver接口、使用 @controlleradvice 注解。
技术文章 / 下载软件趣味内容 / 专业带飞