Tag

Global Exception Handling

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 17, 2023 · Backend Development

Understanding Jackson vs Fastjson Serialization of Circular References and Global Exception Handling in Spring Boot

The article examines how Spring Boot handles circular reference serialization with Jackson and Fastjson, demonstrates the role of @ControllerAdvice for global exception capture, explains why Jackson may emit both 200 and 500 responses, and provides practical solutions using annotations and configuration.

BackendGlobal Exception HandlingJackson
0 likes · 18 min read
Understanding Jackson vs Fastjson Serialization of Circular References and Global Exception Handling in Spring Boot
Top Architect
Top Architect
May 8, 2021 · Backend Development

Implementing a Global Exception Handler in Spring Boot

This article explains how to replace repetitive try‑catch blocks in Spring Boot applications with a unified global exception handling solution by defining a standard AjaxResult response, a custom BusinessException, an error enumeration, and a @RestControllerAdvice handler, enabling clean, extensible error management.

Backend DevelopmentError HandlingGlobal Exception Handling
0 likes · 5 min read
Implementing a Global Exception Handler in Spring Boot
macrozheng
macrozheng
Nov 4, 2020 · Backend Development

Mastering Spring Boot: Build Clean, Validated, and Unified Backend APIs

Learn how to construct robust Spring Boot backend APIs by integrating essential dependencies, applying concise parameter validation with Validator and BindResult, handling exceptions globally, creating custom error types, and standardizing responses through a unified ResultVO, all while simplifying code and improving maintainability.

API ValidationGlobal Exception HandlingSpringBoot
0 likes · 20 min read
Mastering Spring Boot: Build Clean, Validated, and Unified Backend APIs
Java Architecture Diary
Java Architecture Diary
May 25, 2020 · Cloud Native

Mastering Global Exception Handling in Spring Cloud Gateway

This article explains why traditional @ControllerAdvice fails in Spring Cloud Gateway, introduces the built‑in ExceptionHandlingWebHandler and DefaultErrorWebExceptionHandler, and shows how to override them with a custom GlobalExceptionConfiguration for robust reactive error handling.

Error HandlingGlobal Exception HandlingJava
0 likes · 5 min read
Mastering Global Exception Handling in Spring Cloud Gateway
Java Captain
Java Captain
Apr 12, 2020 · Backend Development

Building a Robust Backend API with Spring Boot: Validation, Global Exception Handling, and Unified Response

This article demonstrates step‑by‑step how to construct a clean and standardized backend API in Spring Boot by introducing required dependencies, using Validator for request parameter checks, applying global exception handling, defining custom exceptions, and implementing a unified response format for both success and error cases.

Backend DevelopmentGlobal Exception HandlingJava
0 likes · 20 min read
Building a Robust Backend API with Spring Boot: Validation, Global Exception Handling, and Unified Response