Tagged articles
2 articles
Page 1 of 1
Architect
Architect
Dec 19, 2023 · Backend Development

How Graceful Response Simplifies Spring Boot API Error Handling

This article analyzes the inefficiencies and duplication in typical Spring Boot controller code, introduces the Graceful Response library, and provides step‑by‑step instructions—including Maven integration, annotation setup, controller and service examples, exception mapping, validation handling, and response style configuration—to achieve cleaner, unified API responses.

Backend DevelopmentException ManagementJava
0 likes · 12 min read
How Graceful Response Simplifies Spring Boot API Error Handling
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 20, 2023 · Backend Development

How Spring Boot Registers Custom Error Pages with Tomcat

This article explains how Spring Boot 2.4.12 configures error handling, from default HTML/JSON responses based on the Accept header to the internal auto‑configuration that registers custom error pages in the embedded Tomcat container using BeanPostProcessors and the BasicErrorController.

Backend DevelopmentError HandlingException Management
0 likes · 10 min read
How Spring Boot Registers Custom Error Pages with Tomcat