Tagged articles
214 articles
Page 1 of 3
The Dominant Programmer
The Dominant Programmer
Apr 29, 2026 · Backend Development

Spring MVC + OpenFeign: Contract‑First API, Controller Logic, and Feign Reuse in Microservices

This article explains a standard Spring MVC + OpenFeign design pattern for microservices, where a contract‑first interface defines routing and API specs, Controllers implement business logic, and Feign clients reuse the same interface for remote calls, with full Maven project setup, code samples, and Nacos integration.

Contract-FirstJavaMicroservices
0 likes · 15 min read
Spring MVC + OpenFeign: Contract‑First API, Controller Logic, and Feign Reuse in Microservices
java1234
java1234
Apr 5, 2026 · Backend Development

Why Spring and Spring MVC Use Parent‑Child Containers

The article explains how Spring’s parent‑child container pattern separates core beans like DataSource and TransactionManager from business‑level beans, improving modularity, configuration reuse, decoupling, and flexible bean management, and shows concrete XML and Spring Boot examples for defining and loading these containers.

Bean ConfigurationIoCParent-Child Container
0 likes · 7 min read
Why Spring and Spring MVC Use Parent‑Child Containers
Black & White Path
Black & White Path
Mar 5, 2026 · Information Security

How a Front‑End 0‑Day in a Major OA System Was Discovered and Exploited

The article walks through the discovery of an arbitrary ZIP‑file download vulnerability in a large OA front‑end, detailing how the attacker traced the vulnerable Spring MVC controller, built a PoC using a controllable cookie, achieved directory‑traversal reads, demonstrated a DOS extension, and finally suggested input‑filter mitigations.

0dayJavaOA
0 likes · 9 min read
How a Front‑End 0‑Day in a Major OA System Was Discovered and Exploited
java1234
java1234
Mar 1, 2026 · Backend Development

Spring MVC Interceptor vs Filter: Key Differences and Execution Order

This article explains the fundamental differences between Spring MVC interceptors and servlet filters—including definition, scope, configuration, lifecycle, and execution timing—and details their processing order with illustrative code samples and a request flow diagram.

InterceptorJavaServlet
0 likes · 8 min read
Spring MVC Interceptor vs Filter: Key Differences and Execution Order
Coder Trainee
Coder Trainee
Feb 20, 2026 · Backend Development

Why Lombok-generated getters cause JSON fields to become lowercase

The article explains how Lombok’s @Data annotation generates getter and setter methods with a lowercase first letter for camel‑case fields, causing Jackson to serialize JSON property names in all lowercase, and offers three fixes: write methods manually, use @JsonProperty, or rename fields to avoid lower‑upper patterns.

JSONJacksonJava
0 likes · 4 min read
Why Lombok-generated getters cause JSON fields to become lowercase
java1234
java1234
Jan 3, 2026 · Backend Development

Why Spring and Spring MVC Need Parent‑Child Containers

The article explains the concept of parent‑child containers in Spring, outlines three key benefits—modularization, scoped bean visibility, and configuration reuse—provides step‑by‑step XML and Java code examples, and shows how the containers integrate with Spring MVC to create a cleaner, more maintainable application architecture.

JavaParent-Child ContainerSpring MVC
0 likes · 7 min read
Why Spring and Spring MVC Need Parent‑Child Containers
Java Companion
Java Companion
Dec 14, 2025 · Backend Development

Why Choose WebFlux Over Spring MVC for New Projects?

The article explains how Spring WebFlux replaces the thread‑per‑request blocking model of Spring MVC with an asynchronous, non‑blocking, reactive architecture that uses fewer threads for high‑concurrency I/O workloads, while also outlining its learning curve, ecosystem constraints, and practical decision guidelines for when to adopt it.

BackendJavaNon-blocking
0 likes · 13 min read
Why Choose WebFlux Over Spring MVC for New Projects?
Code Ape Tech Column
Code Ape Tech Column
Nov 11, 2025 · Backend Development

Pass User Info from Filter to Controller via Spring MVC Argument Resolver

This article explains how to transfer the current user ID extracted from a JWT token in a filter to Spring MVC controller methods using a custom HandlerMethodArgumentResolver, highlighting drawbacks of ThreadLocal and request attributes, and demonstrating a type‑safe, extensible solution with code examples.

HandlerMethodArgumentResolverJavaSpring MVC
0 likes · 11 min read
Pass User Info from Filter to Controller via Spring MVC Argument Resolver
Architect
Architect
Sep 14, 2025 · Backend Development

Interceptor vs Filter in Spring MVC: Key Differences, Code Samples, and Usage Guide

This article explains the fundamental differences between Spring MVC interceptors and servlet filters, provides complete Java code examples for both, shows how to configure them in Spring and web.xml, and summarizes when to choose each approach for request handling and AOP-like functionality.

InterceptorJavaSpring MVC
0 likes · 11 min read
Interceptor vs Filter in Spring MVC: Key Differences, Code Samples, and Usage Guide
Java Architect Essentials
Java Architect Essentials
Sep 4, 2025 · Backend Development

Refactoring Spring Controllers: Unified Responses, Validation, and Global Exception Handling

This article explains how to redesign Spring MVC controllers by introducing a unified response wrapper, leveraging ResponseBodyAdvice for automatic packaging, fixing String conversion issues, applying JSR‑303 validation with custom rules, and implementing global exception handling to keep controller code clean and maintainable.

ControllerException HandlingSpring MVC
0 likes · 20 min read
Refactoring Spring Controllers: Unified Responses, Validation, and Global Exception Handling
Selected Java Interview Questions
Selected Java Interview Questions
Aug 14, 2025 · Backend Development

Master Spring MVC Controllers: From @Controller Basics to Advanced Techniques

This guide walks through creating Spring MVC controllers using @Controller, implementing the Controller interface, extending AbstractController, mapping URLs and HTTP methods, handling request parameters, returning ModelAndView, performing redirects, processing forms, uploading files, autowiring services, and adhering to the single‑responsibility principle.

ControllerJavaModelAndView
0 likes · 14 min read
Master Spring MVC Controllers: From @Controller Basics to Advanced Techniques
vivo Internet Technology
vivo Internet Technology
Jul 23, 2025 · Backend Development

Why Does My Service’s CPU Spike After Restart? Deep Dive into Thread Bottlenecks and JIT Compilation

This article analyzes the CPU spikes that occur within minutes after a Java service restart, explains how excessive Runnable threads, frequent context switches, and JIT compiler activity cause the overload, and presents step‑by‑step diagnostics and mitigation strategies such as traffic greying, cache pre‑warming, request‑parameter cleanup, and JVM warm‑up.

ArthasCPU profilingJIT Compilation
0 likes · 32 min read
Why Does My Service’s CPU Spike After Restart? Deep Dive into Thread Bottlenecks and JIT Compilation
Su San Talks Tech
Su San Talks Tech
Jul 5, 2025 · Backend Development

Mastering Spring Web MVC Annotations: A Complete Guide

This article provides a comprehensive overview of Spring Web MVC and Spring Boot annotations—including @RequestMapping, its attribute set, shortcut mapping annotations, controller advice, dependency injection, bean scopes, conditional configuration, and related component stereotypes—illustrated with code snippets and diagrams for Java backend developers.

Backend DevelopmentJava AnnotationsSpring Boot
0 likes · 17 min read
Mastering Spring Web MVC Annotations: A Complete Guide
Top Architect
Top Architect
Jun 3, 2025 · Backend Development

Best Practices for Spring MVC Controller Design: Unified Response, Validation, and Exception Handling

This article explains how to design Spring MVC controllers with a unified response structure, implement request validation using JSR‑303 and custom annotations, handle exceptions uniformly, and resolve issues with ResponseBodyAdvice and HttpMessageConverters to improve code clarity and maintainability.

ControllerException HandlingJava
0 likes · 18 min read
Best Practices for Spring MVC Controller Design: Unified Response, Validation, and Exception Handling
Top Architecture Tech Stack
Top Architecture Tech Stack
May 23, 2025 · Backend Development

Best Practices for Designing a Robust Spring MVC Controller Layer

This article explains the essential responsibilities of a Spring MVC controller, identifies common pitfalls such as duplicated validation and inconsistent responses, and demonstrates how to unify response structures, handle String conversion issues, apply JSR‑303 validation, create custom validators, and implement centralized exception handling using ResponseBodyAdvice and @RestControllerAdvice.

ControllerSpring MVCexceptionhandling
0 likes · 17 min read
Best Practices for Designing a Robust Spring MVC Controller Layer
Top Architecture Tech Stack
Top Architecture Tech Stack
May 9, 2025 · Backend Development

Understanding DTO, BO, PO, and VO in Backend Development

This article explains the concepts of Data Transfer Object (DTO), Business Object (BO), Persistent Object (PO), and Value Object (VO) in backend development, compares their roles, provides Java code examples, and discusses how to configure Spring MVC to filter null fields, while also including promotional content for IDE licenses.

Backend DevelopmentJavaPO
0 likes · 6 min read
Understanding DTO, BO, PO, and VO in Backend Development
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 5, 2025 · Backend Development

Explore 100+ Spring Boot 3 Real-World Cases: DB Init, Redis, Security & More

This article presents a continuously updated collection of over 120 Spring Boot 3 practical examples, covering database initialization scripts, switching Redis clients, disabling and customizing security, configuring HTTP clients, and fine‑tuning Spring MVC behavior with code snippets and configuration details.

Database InitializationHTTP clientSecurity
0 likes · 9 min read
Explore 100+ Spring Boot 3 Real-World Cases: DB Init, Redis, Security & More
Java Captain
Java Captain
Apr 30, 2025 · Backend Development

Refactoring Controller Layer Logic: Unified Response Structure, Parameter Validation, and Global Exception Handling in Spring

This article outlines a four‑step approach to refactor Spring MVC controllers by unifying response structures, centralizing response wrapping via ResponseBodyAdvice, implementing robust parameter validation with JSR‑303, and handling custom exceptions globally, resulting in cleaner, more maintainable backend code.

ControllerParameter ValidationSpring MVC
0 likes · 18 min read
Refactoring Controller Layer Logic: Unified Response Structure, Parameter Validation, and Global Exception Handling in Spring
Top Architecture Tech Stack
Top Architecture Tech Stack
Mar 20, 2025 · Backend Development

Refactoring Spring MVC Controller Layer: Unified Response Structure, Validation, and Exception Handling

This article explains how to refactor the Spring MVC Controller layer by unifying response structures, using ResponseBodyAdvice for automatic wrapping, handling parameter validation with JSR‑303, and implementing custom exceptions with centralized exception handling to simplify and standardize API responses.

Exception HandlingJavaSpring MVC
0 likes · 17 min read
Refactoring Spring MVC Controller Layer: Unified Response Structure, Validation, and Exception Handling
Java Captain
Java Captain
Mar 18, 2025 · Backend Development

Refactoring Spring MVC Controllers: Unified Response Structure, Parameter Validation, and Centralized Exception Handling

This article explains how to refactor the Spring MVC Controller layer by standardizing response structures, implementing unified response wrapping via ResponseBodyAdvice, handling String conversion issues, applying JSR‑303 parameter validation, creating custom validation rules, and defining custom exceptions with centralized exception handling to simplify controller code.

ControllerJavaParameter Validation
0 likes · 17 min read
Refactoring Spring MVC Controllers: Unified Response Structure, Parameter Validation, and Centralized Exception Handling
Selected Java Interview Questions
Selected Java Interview Questions
Mar 3, 2025 · Backend Development

Improving Spring MVC Controllers: Unified Response Structure, Validation, and Exception Handling

This article explains how to refactor Spring MVC controller layers by defining a unified response format, using ResponseBodyAdvice for automatic wrapping, handling String conversion issues, applying parameter validation with JSR‑303, creating custom validators, and implementing centralized exception handling to produce consistent API responses.

ControllerException HandlingResponse Wrapping
0 likes · 17 min read
Improving Spring MVC Controllers: Unified Response Structure, Validation, and Exception Handling
Sohu Tech Products
Sohu Tech Products
Feb 26, 2025 · Backend Development

Implementing a Generic Aggregate CRUD Controller with Spring MVC and MyBatisPlus

The article demonstrates how to refactor a large PHP API suite into a Java Spring MVC application by creating a generic AggregateController that, through model‑name mapping, reflection‑based repository registration and a thread‑safe MappingKit, provides CRUD endpoints for any table, collapsing hundreds of endpoints into just two controllers for client and admin.

CRUDGeneric ControllerJava
0 likes · 12 min read
Implementing a Generic Aggregate CRUD Controller with Spring MVC and MyBatisPlus
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 19, 2025 · Backend Development

9 Powerful Ways to Build Spring Boot 3 APIs – Full Code Collection

This guide showcases nine distinct Spring Boot 3 API development techniques—from classic @RestController annotations to functional RouterFunction beans and custom Actuator endpoints—providing complete code samples, configuration details, and a promise of ongoing updates with a downloadable PDF of over 90 practical cases.

API developmentActuatorJava
0 likes · 8 min read
9 Powerful Ways to Build Spring Boot 3 APIs – Full Code Collection
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 18, 2025 · Backend Development

Why Spring MVC Auto‑Binds Header Data to Your DTO – The Hidden Mechanism Explained

This article explores why Spring MVC automatically binds HTTP header values to controller method parameters, demonstrates the issue with a sample Spring Boot 3.4.0 project, analyzes the underlying HandlerMethodArgumentResolver and ServletModelAttributeMethodProcessor code, and provides two practical solutions to prevent unwanted header binding.

HandlerMethodArgumentResolverHeader BindingJava
0 likes · 8 min read
Why Spring MVC Auto‑Binds Header Data to Your DTO – The Hidden Mechanism Explained
Architecture Digest
Architecture Digest
Feb 11, 2025 · Backend Development

Outdated Java Backend Technologies You Can Stop Learning

The article reviews several Java backend technologies—JSP, Struts, Hibernate, Servlet, Applet, Swing, JDBC, and XML—explaining why they are now considered obsolete or low‑priority and recommending modern alternatives such as Spring MVC, MyBatis, and deep Servlet knowledge for current development.

HibernateJSPJava
0 likes · 9 min read
Outdated Java Backend Technologies You Can Stop Learning
macrozheng
macrozheng
Jan 26, 2025 · Backend Development

Which Java Technologies Are Worth Learning in 2024? A Practical Guide

Based on 20 years of Java experience, this article evaluates Java technologies like JSP, Struts, Hibernate, and Servlet against practical use, depth of understanding, and interview relevance, recommending which to drop, which to master, and highlighting alternatives such as Spring MVC and MyBatis.

Backend DevelopmentHibernateJSP
0 likes · 8 min read
Which Java Technologies Are Worth Learning in 2024? A Practical Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 31, 2024 · Backend Development

Master CSV Processing in Spring Boot 3 with Super CSV – Full Code Guide

This article provides a comprehensive tutorial on using the Super CSV library in Spring Boot 3, covering Maven dependencies, core APIs for reading and writing CSV files, cell processors, handling irregular data, and a complete Spring MVC controller example for CSV download, all illustrated with code snippets and screenshots.

CSVSpring BootSpring MVC
0 likes · 14 min read
Master CSV Processing in Spring Boot 3 with Super CSV – Full Code Guide
Architect
Architect
Dec 23, 2024 · Information Security

How to Implement Enterprise Data Desensitization with MyBatis and Fastjson

This article explains why data desensitization is essential for modern enterprises, compares masking, obfuscation and encryption techniques, and provides step‑by‑step implementations for database, log, and output layers using MyBatis interceptors, Fastjson filters, and Spring MVC configuration.

JavaMyBatisSecurity
0 likes · 13 min read
How to Implement Enterprise Data Desensitization with MyBatis and Fastjson
Lobster Programming
Lobster Programming
Dec 20, 2024 · Backend Development

Filters vs Interceptors in Java Web Apps: Key Differences Explained

This article compares Java web filters and Spring MVC interceptors, detailing their implementation differences, origins, execution order, supported project types, and typical use‑cases, helping developers choose the right tool for request handling, security, logging, and other cross‑cutting concerns.

InterceptorJavaServlet Filter
0 likes · 5 min read
Filters vs Interceptors in Java Web Apps: Key Differences Explained
Su San Talks Tech
Su San Talks Tech
Nov 28, 2024 · Backend Development

Unified Asynchronous Notification Verification Using Custom Spring MVC Argument Resolvers

The article explains how to encapsulate asynchronous notification signature verification in Spring MVC by creating a custom annotation and argument resolver, discusses why aspects and @RequestBody are unsuitable, and presents an alternative unified notification handling design using a service interface and dynamic implementation loading.

Custom Argument ResolverJavaSpring MVC
0 likes · 9 min read
Unified Asynchronous Notification Verification Using Custom Spring MVC Argument Resolvers
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 28, 2024 · Backend Development

Resolving Missing Request Headers in Spring MVC Multithreaded Environments

This article analyzes why Spring MVC fails to retrieve request header fields in multithreaded scenarios, explains the underlying ThreadLocal storage mechanism, critiques a common but flawed solution, and presents reliable approaches using CountDownLatch, manual RequestContextHolder propagation, and request caching to ensure header availability across threads.

BackendJavaRequestContextHolder
0 likes · 10 min read
Resolving Missing Request Headers in Spring MVC Multithreaded Environments
Top Architect
Top Architect
Oct 14, 2024 · Backend Development

Outdated Java Technologies You Can Stop Learning: JSP, Struts, Hibernate, and More

The article advises Java backend developers to drop learning outdated technologies such as JSP, Struts, Hibernate, and certain legacy tools, emphasizing the importance of mastering core concepts like Servlets while focusing on modern frameworks like Spring MVC and lightweight ORMs like MyBatis.

JavaOutdated TechnologiesSpring MVC
0 likes · 10 min read
Outdated Java Technologies You Can Stop Learning: JSP, Struts, Hibernate, and More
Code Ape Tech Column
Code Ape Tech Column
Sep 27, 2024 · Information Security

Implementing API Request and Response Encryption/Decryption with Spring MVC and ControllerAdvice

This article demonstrates how to secure API interfaces by implementing symmetric encryption and decryption for both GET and POST requests in a Spring MVC application, using ControllerAdvice to intercept and process request and response bodies, handling key management, signature verification, and serialization issues across H5, Android, and iOS clients.

API SecurityControllerAdviceJava
0 likes · 14 min read
Implementing API Request and Response Encryption/Decryption with Spring MVC and ControllerAdvice
Su San Talks Tech
Su San Talks Tech
Aug 23, 2024 · Backend Development

Master SpringBoot Annotations: A Complete Guide to @Controller, @Service, @Repository and More

This article provides a comprehensive overview of SpringBoot’s most commonly used annotations, covering MVC, bean, JPA, configuration, exception handling, and testing annotations, complete with clear explanations and practical code examples to help developers avoid pitfalls and write cleaner code.

Backend DevelopmentJavaSpring MVC
0 likes · 18 min read
Master SpringBoot Annotations: A Complete Guide to @Controller, @Service, @Repository and More
Top Architect
Top Architect
Jun 14, 2024 · Backend Development

Comprehensive Guide to Spring MVC, Bean, and Boot Annotations

This article provides a detailed overview of Spring MVC request‑mapping annotations, Spring Bean stereotypes, dependency‑injection and scope annotations, as well as Spring Boot conditional and lifecycle annotations, complete with code examples and usage tips for Java backend development.

JavaSpring BootSpring MVC
0 likes · 16 min read
Comprehensive Guide to Spring MVC, Bean, and Boot Annotations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 27, 2024 · Backend Development

Enabling Multiple @RequestBody Parameters in Spring MVC by Caching the Request Body

This article explains why Spring MVC cannot parse multiple @RequestBody annotations on a single handler method, analyzes the internal I/O stream closure that causes the failure, and provides a practical solution using a request‑body caching wrapper and a servlet filter to allow repeated reads of the request payload.

@RequestBodyBackendHTTP
0 likes · 9 min read
Enabling Multiple @RequestBody Parameters in Spring MVC by Caching the Request Body
Architecture Digest
Architecture Digest
Apr 2, 2024 · Backend Development

Outdated Java Backend Technologies and Learning Recommendations

The article examines which Java backend technologies are considered obsolete—such as JSP, Struts, Hibernate, and others—by applying criteria like practical usage, depth of understanding, and interview relevance, and advises learners on what to drop, prioritize, or master for modern development.

BackendHibernateJSP
0 likes · 7 min read
Outdated Java Backend Technologies and Learning Recommendations
Architecture Digest
Architecture Digest
Feb 29, 2024 · Backend Development

Comprehensive Guide to Spring MVC, Spring Bean, and Spring Boot Annotations

This article provides a detailed overview of Spring MVC request‑mapping annotations, Spring Bean lifecycle and dependency‑injection annotations, as well as Spring Boot configuration annotations, illustrating each with explanations and code examples to help Java backend developers use these tools effectively.

Backend DevelopmentJavaSpring Boot
0 likes · 12 min read
Comprehensive Guide to Spring MVC, Spring Bean, and Spring Boot Annotations
Architect
Architect
Feb 7, 2024 · Backend Development

How to Secure Spring MVC APIs with Request/Response Encryption Using ControllerAdvice

This article walks through a real‑world scenario of adding symmetric encryption to Spring MVC endpoints for Android, iOS and H5 clients, detailing the requirements, code implementation of request and response interceptors, serialization pitfalls with enums and LocalDateTime, and the final solution using Jackson's ObjectMapper to keep encrypted and non‑encrypted responses consistent.

API SecurityControllerAdviceJackson
0 likes · 17 min read
How to Secure Spring MVC APIs with Request/Response Encryption Using ControllerAdvice
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 1, 2024 · Backend Development

Master Spring MVC Customization: From WebConfig to YAML Message Converters

This tutorial walks through enabling Spring MVC, configuring type conversion, validation, interceptors, content negotiation, custom YAML message converters, view controllers, view resolvers, and static resource handling in a Spring Boot 2.7.12 application, complete with code examples and output screenshots.

Content negotiationMessage ConverterSpring Boot
0 likes · 9 min read
Master Spring MVC Customization: From WebConfig to YAML Message Converters
Java Architect Essentials
Java Architect Essentials
Jan 1, 2024 · Backend Development

Outdated Java Technologies You Can Skip Learning: JSP, Struts, Hibernate, Servlet, and More

The article outlines which Java technologies—such as JSP, Struts, Hibernate, Servlet, Applet, Swing, JDBC, and XML—are now largely obsolete or unnecessary to learn for modern backend development, offering criteria for judging relevance and recommending focus on current frameworks like Spring MVC and MyBatis.

BackendJavaMyBatis
0 likes · 7 min read
Outdated Java Technologies You Can Skip Learning: JSP, Struts, Hibernate, Servlet, and More
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 3, 2023 · Backend Development

Master Custom HandlerMapping in Spring Boot: Header‑Based Routing with getCustomMethodCondition

This tutorial explains how to extend Spring MVC's HandlerMapping by implementing a custom RequestCondition that matches requests based on an x-token header and a custom @AKF annotation, covering code implementation, configuration, testing, and the underlying request‑matching mechanism.

Custom RequestConditionHandlerMappingHeader Authentication
0 likes · 7 min read
Master Custom HandlerMapping in Spring Boot: Header‑Based Routing with getCustomMethodCondition
Architecture Digest
Architecture Digest
Nov 17, 2023 · Backend Development

Best Practices for Designing an Excellent Controller Layer in Spring MVC

This article explains how to design a clean, maintainable Spring MVC controller layer by unifying response structures, applying centralized exception handling, and leveraging JSR‑303 validation with custom rules, illustrated with comprehensive code examples and best‑practice guidelines.

Backend DevelopmentControllerJava
0 likes · 18 min read
Best Practices for Designing an Excellent Controller Layer in Spring MVC
Selected Java Interview Questions
Selected Java Interview Questions
Nov 16, 2023 · Backend Development

Custom Enum and JSON Parameter Binding in Spring MVC

This article explains how to handle enum and JSON string parameters in Spring MVC by creating custom annotations and argument resolvers, demonstrates the implementation steps with full code examples, and also reviews Spring MVC's built‑in parameter binding mechanisms such as @RequestParam, @PathVariable, @RequestBody, and @ModelAttribute.

Backend DevelopmentCustom AnnotationEnum Binding
0 likes · 10 min read
Custom Enum and JSON Parameter Binding in Spring MVC
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 5, 2023 · Backend Development

How to Fully Customize Spring MVC Core Components for Flexible Web Apps

This guide walks through creating custom Spring MVC core components—including DispatcherServlet, HandlerMapping, HandlerAdapter, and ViewResolver—using annotations and Java code to gain full control over request handling, parameter resolution, and response rendering in backend development.

Backend DevelopmentCustom HandlerMappingHandlerAdapter
0 likes · 10 min read
How to Fully Customize Spring MVC Core Components for Flexible Web Apps
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 29, 2023 · Backend Development

Mastering Global Exception Handling in Spring MVC with @RestControllerAdvice

This guide explains how Spring MVC's @ControllerAdvice, @RestControllerAdvice, and @ExceptionHandler annotations enable both local and global exception handling, including selective handling by custom annotations, specific controllers, or packages, with practical code examples for Java developers.

Backend DevelopmentException HandlingJava
0 likes · 7 min read
Mastering Global Exception Handling in Spring MVC with @RestControllerAdvice
Architect
Architect
Sep 26, 2023 · Backend Development

Comprehensive Guide to Spring MVC Annotations and Related Spring Annotations

This article provides a detailed overview of Spring MVC and Spring Boot annotations such as @RequestMapping, @GetMapping, @PostMapping, @RequestBody, @ControllerAdvice, @Component, @Bean, @Scope, @Autowired, and others, explaining their purposes, attributes, usage patterns, and offering practical code examples for each.

BackendJavaSpring Boot
0 likes · 15 min read
Comprehensive Guide to Spring MVC Annotations and Related Spring Annotations
Java Captain
Java Captain
Sep 15, 2023 · Backend Development

A Comprehensive Guide to the 50 Most Common Spring Boot Annotations

This article provides an in‑depth overview of the most frequently used Spring Boot annotations, categorizing them into Spring MVC, Spring Data JPA, Spring Security, and other essential annotations, and demonstrates their practical usage with concise examples.

BackendJavaSpring Boot
0 likes · 5 min read
A Comprehensive Guide to the 50 Most Common Spring Boot Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 8, 2023 · Backend Development

How Spring MVC Processes Requests: Core Components and Controller Variants

This article explains how Spring MVC handles incoming requests by detailing each core component—from DispatcherServlet to ViewResolver—and demonstrates various controller definitions, including @RestController, HttpRequestHandler, custom Controller, and servlet-based approaches, with code examples and configuration tips.

ControllerDispatcherServletHandlerMapping
0 likes · 5 min read
How Spring MVC Processes Requests: Core Components and Controller Variants
Java Architecture Diary
Java Architecture Diary
Aug 21, 2023 · Backend Development

How to Fix Spring Boot 3 Trailing Slash URL Mismatch After Upgrade

This article explains why URL mappings that worked in Spring Boot 2.x break after upgrading to Spring Boot 3, demonstrates the issue with trailing slashes, and provides three practical solutions—including a filter, Nginx rule, and Spring Cloud Gateway optimization—to restore correct routing.

NGINXSpring BootSpring Cloud Gateway
0 likes · 5 min read
How to Fix Spring Boot 3 Trailing Slash URL Mismatch After Upgrade
Top Architect
Top Architect
Aug 10, 2023 · Backend Development

Optimizing Controller Layer Logic in Spring MVC: Best Practices and Refactoring

This article explains the responsibilities of the MVC controller layer, shows a typical Spring Boot controller implementation, and then demonstrates a series of refactorings—including delegating to the service layer, using validation annotations, standardizing response objects, and centralizing exception handling—to produce cleaner, more maintainable backend code.

ControllerException HandlingJava
0 likes · 12 min read
Optimizing Controller Layer Logic in Spring MVC: Best Practices and Refactoring
Architect's Tech Stack
Architect's Tech Stack
Jul 22, 2023 · Backend Development

Improving Spring MVC Controller Layer: Unified Response Structure, Validation, and Exception Handling

This article explains how to refactor a Spring MVC Controller layer by introducing a unified response format, leveraging ResponseBodyAdvice for automatic wrapping, applying JSR‑303 validation for request parameters, and centralizing exception handling to produce clean, maintainable backend code.

ControllerJavaSpring MVC
0 likes · 17 min read
Improving Spring MVC Controller Layer: Unified Response Structure, Validation, and Exception Handling
Java Captain
Java Captain
Jul 21, 2023 · Backend Development

Outdated Java Technologies You Should Stop Learning

This article reviews several Java backend technologies—JSP, Struts, Hibernate, Servlet, and others—explaining why they are considered outdated or unnecessary for modern development and offering guidance on what newcomers should focus on instead.

Backend DevelopmentHibernateJSP
0 likes · 9 min read
Outdated Java Technologies You Should Stop Learning
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 15, 2023 · Backend Development

Mastering Spring MVC Exception Handling: From DispatcherServlet to Custom Resolvers

This article explains how Spring MVC handles exceptions, detailing the role of DispatcherServlet, the chain of HandlerExceptionResolver implementations, the controller invocation flow, and the internal mechanisms that resolve errors, including fallback to the default /error endpoint.

Backend DevelopmentDispatcherServletException Handling
0 likes · 8 min read
Mastering Spring MVC Exception Handling: From DispatcherServlet to Custom Resolvers
Java Interview Crash Guide
Java Interview Crash Guide
Apr 19, 2023 · Backend Development

Master Spring MVC: Core Concepts, Annotations, and Interceptor Guide

This article explains the MVC pattern, the role of the DAO layer, details Spring MVC’s request handling flow, introduces key annotations such as @RequestMapping, @RequestParam, @RequestBody, and @PathVariable, and describes how to implement and register interceptors and request filters for comprehensive request processing.

Backend DevelopmentJavaSpring MVC
0 likes · 7 min read
Master Spring MVC: Core Concepts, Annotations, and Interceptor Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 23, 2023 · Backend Development

Mastering Spring MVC Auto-Configuration in Spring Boot 2.6.14

Explore how Spring Boot 2.6.14 automatically configures Spring MVC, including view resolvers, static resources, converters, message converters, JSON serialization, content negotiation, and error handling, and learn how to customize these features with WebMvcConfigurer, WebMvcRegistrations, and related beans for full control.

Auto-ConfigurationBackend DevelopmentJava
0 likes · 11 min read
Mastering Spring MVC Auto-Configuration in Spring Boot 2.6.14
转转QA
转转QA
Mar 9, 2023 · Backend Development

Asynchronous Processing in Servlet 3.0 and Spring MVC: Implementation Methods and Practical Applications

This article explains why and how to use asynchronous processing in Servlet 3.0 and Spring MVC, compares four implementation approaches (no return value, Callable, WebAsyncTask, DeferredResult), provides detailed code examples, and demonstrates a real‑world use case for decoupling long‑running tasks.

CallableDeferredResultServlet 3.0
0 likes · 22 min read
Asynchronous Processing in Servlet 3.0 and Spring MVC: Implementation Methods and Practical Applications
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 23, 2023 · Backend Development

Mastering Spring MVC Exception Handling: A Deep Dive into HandlerExceptionResolver

This article explains how Spring MVC processes exceptions using the DispatcherServlet and a configurable HandlerExceptionResolver chain, outlines the built‑in resolver implementations, shows how to customize error pages, and provides code examples for handling errors in both HTML and JSON responses.

Backend DevelopmentException HandlingHandlerExceptionResolver
0 likes · 8 min read
Mastering Spring MVC Exception Handling: A Deep Dive into HandlerExceptionResolver
Java Backend Technology
Java Backend Technology
Feb 6, 2023 · Backend Development

Master the 11 Most Powerful Spring Extension Points for Advanced Backend Development

This article explores Spring's eleven most commonly used extension points—including custom interceptors, bean factory access, global exception handling, type converters, configuration imports, startup runners, bean definition tweaks, bean post‑processing, initialization methods, shutdown hooks, and custom scopes—providing code examples and practical guidance for Java backend developers.

Backend DevelopmentExtension PointsJava
0 likes · 16 min read
Master the 11 Most Powerful Spring Extension Points for Advanced Backend Development
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 16, 2023 · Backend Development

Master Spring MVC Exception Handling: Local, Global, and REST API Strategies

This article explains how to use @ExceptionHandler with @Controller, @ControllerAdvice, and @RestControllerAdvice for local and global exception handling in Spring MVC, details supported method parameters and return types, and shows how to customize REST API error responses by extending ResponseEntityExceptionHandler.

Backend DevelopmentControllerAdviceException Handling
0 likes · 10 min read
Master Spring MVC Exception Handling: Local, Global, and REST API Strategies
政采云技术
政采云技术
Dec 13, 2022 · Backend Development

Design and Implementation of an IntelliJ IDEA Plugin for Automatic HTTP Interface Invocation

This article describes how to build an IntelliJ IDEA plugin that parses Spring MVC controller code using PSI to automatically generate HTTP request definitions, handle method and parameter extraction, manage authentication cookies on macOS, and provides the complete source code and usage instructions.

Cookie ExtractionHTTP requestIntelliJ Plugin
0 likes · 13 min read
Design and Implementation of an IntelliJ IDEA Plugin for Automatic HTTP Interface Invocation
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 12, 2022 · Backend Development

Mastering CORS in Spring MVC: Practical Configurations & Annotations

Spring MVC provides built‑in CORS support, allowing you to configure preflight, simple, and actual requests via global HandlerMapping settings, @CrossOrigin annotations, Java‑based CorsRegistry, or CorsFilter, with detailed options for origins, headers, methods, credentials, and max‑age to secure cross‑origin interactions.

Backend DevelopmentCORSCross-Origin
0 likes · 8 min read
Mastering CORS in Spring MVC: Practical Configurations & Annotations
Su San Talks Tech
Su San Talks Tech
Nov 14, 2022 · Backend Development

How to Secure Spring MVC APIs with Unified Request/Response Encryption

This article walks through implementing symmetric encryption for both request and response bodies in a Spring MVC project, covering requirement analysis, data model design, custom ControllerAdvice for decryption and encryption, serialization challenges with FastJson and Jackson, and final configuration to ensure consistent API output across Android, iOS, and H5 clients.

ControllerAdviceJacksonJava
0 likes · 14 min read
How to Secure Spring MVC APIs with Unified Request/Response Encryption
macrozheng
macrozheng
Oct 30, 2022 · Backend Development

Which Java Technologies Are Obsolete? A 20‑Year Veteran’s Guide

Drawing on two decades of Java experience, this article evaluates outdated Java technologies—JSP, Struts, Hibernate, and others—based on real‑world development relevance, interview usefulness, and depth of understanding, and offers clear recommendations on what to skip and what to master.

HibernateJSPJava
0 likes · 8 min read
Which Java Technologies Are Obsolete? A 20‑Year Veteran’s Guide
Java Captain
Java Captain
Oct 23, 2022 · Backend Development

Outdated Java Technologies: What to Skip and What to Master

The article reviews decades of Java development, explaining why technologies such as JSP, Struts, Hibernate, Applet, Swing, JDBC, and XML are now largely obsolete for new learners, and recommends focusing on Spring MVC, MyBatis, and a deep understanding of Servlets.

Backend DevelopmentHibernateJSP
0 likes · 8 min read
Outdated Java Technologies: What to Skip and What to Master
Top Architect
Top Architect
Oct 21, 2022 · Backend Development

Differences Between Interceptors and Filters in Spring MVC and Their Implementation

This article explains the conceptual differences between Spring MVC interceptors and servlet filters, demonstrates how to implement each with Java code, shows the necessary configuration in Spring and web.xml, and summarizes their respective use cases, lifecycles, and limitations for backend development.

InterceptorJavaSpring MVC
0 likes · 11 min read
Differences Between Interceptors and Filters in Spring MVC and Their Implementation
21CTO
21CTO
Oct 17, 2022 · Backend Development

Designing Clean API Response Wrappers for Spring MVC Controllers

This article explains how to structure API responses in a micro‑service architecture, defines a unified JSON format with status codes, shows how to use annotations and interceptors to automatically wrap results, and demonstrates code refactoring for cleaner, more maintainable controller logic.

APIBackend DevelopmentJava
0 likes · 8 min read
Designing Clean API Response Wrappers for Spring MVC Controllers
Top Architect
Top Architect
Sep 11, 2022 · Backend Development

Improving Controller Layer Logic: Unified Response Wrapping, Validation, and Exception Handling in Spring MVC

This article explains how to design a clean Controller layer in Spring MVC by implementing unified response structures, handling String response issues with ResponseBodyAdvice, applying parameter validation with JSR‑303, and creating custom exceptions with centralized exception handling to simplify business logic.

ControllerException HandlingJava
0 likes · 19 min read
Improving Controller Layer Logic: Unified Response Wrapping, Validation, and Exception Handling in Spring MVC
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 25, 2022 · Backend Development

Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12

This guide explains how Spring Boot 2.4.12 automatically configures Spring MVC components such as view resolvers, converters, and message handlers, and shows how to customize them via WebMvcConfigurer, WebMvcRegistrations, HttpMessageConverters, and @JsonComponent, including code examples for full control over the Web MVC setup.

HttpMessageConvertersSpring BootSpring MVC
0 likes · 8 min read
Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12
Top Architect
Top Architect
Jul 3, 2022 · Backend Development

Implementing Request and Response Encryption in Spring MVC Using ControllerAdvice

This article demonstrates how to secure GET and POST API endpoints in a Spring MVC application by encrypting request bodies and responses with AES, using custom ControllerAdvice classes, handling serialization issues with FastJSON and Jackson, and configuring ObjectMapper for proper date and enum formatting.

AESControllerAdviceJackson
0 likes · 15 min read
Implementing Request and Response Encryption in Spring MVC Using ControllerAdvice
Java Architect Essentials
Java Architect Essentials
Jun 24, 2022 · Backend Development

Make a Spring MVC Endpoint Accept JSON, Form and Multipart in One Call

This article explains how to redesign a Spring MVC controller so that a single endpoint can seamlessly handle JSON payloads, URL‑encoded form data, and multipart file uploads by creating a custom annotation, resolver, and Spring configuration, avoiding the pitfalls of manual HttpServletRequest parsing.

@RequestBodyContent-TypeCustom Annotation
0 likes · 7 min read
Make a Spring MVC Endpoint Accept JSON, Form and Multipart in One Call
Java Backend Technology
Java Backend Technology
May 23, 2022 · Backend Development

Is Your Spring MVC Controller Thread‑Safe? Understand and Fix It

This article explains what thread safety means, demonstrates how a simple counter can become unsafe under concurrent requests, shows Java code examples of the problem and its synchronized solution, and provides practical guidelines for ensuring Spring MVC controllers remain thread‑safe by avoiding shared mutable state or using synchronization mechanisms such as synchronized blocks or ThreadLocal.

ControllerJava concurrencySpring MVC
0 likes · 5 min read
Is Your Spring MVC Controller Thread‑Safe? Understand and Fix It