Tagged articles
SpringMVC
16 articles · Page 1 of 1
This article explains the purpose and usage of Spring MVC’s @PathVariable annotation, covering basic binding, custom names, class‑level variables, multiple parameters, map injection, regex and optional variables, path‑suffix handling, and how to retrieve variables outside controllers, all with clear code examples.
PathVariableSpringBootSpringMVC
0 likes · 7 min read

This article explains why RequestContextHolder fails to retrieve the HttpServletRequest in a multithreaded Spring MVC environment, demonstrates the problem with a concrete example, analyzes the underlying thread‑local handling of request attributes, and clarifies the default non‑inheritable behavior that leads to null requests.
JavaMultithreadingRequestContextHolder
0 likes · 8 min read

The article presents a technique that uses a generic AggregateController, dynamic model‑name routing, and a lightweight mapping container to share CRUD logic across dozens of tables, reducing hundreds of API methods to just two controllers while keeping the codebase clean and extensible.
CRUDGenericControllerJava
0 likes · 13 min read

This article explains how duplicate form submissions occur, outlines common prevention techniques such as token validation and timestamp checks, and demonstrates a practical SpringMVC interceptor implementation with token storage and scheduled cleanup to ensure request uniqueness and reduce server load.
BackendInterceptorJava
0 likes · 8 min read

This article explains how the Chain of Responsibility design pattern is implemented within Spring MVC interceptors, detailing the request flow, interceptor lifecycle methods, and practical differences from the classic GoF definition, while also exploring other typical use cases of the pattern.
Chain of ResponsibilityDesign PatternInterceptor
0 likes · 10 min read

This article explains how the Chain of Responsibility design pattern is employed within Spring MVC interceptors, detailing the interceptor lifecycle, code implementation, differences from the classic GoF definition, and broader use cases such as authentication, logging, and order processing.
Chain of ResponsibilityDesign PatternInterceptor
0 likes · 10 min read

This article provides a detailed overview of the most frequently used Spring annotations—including core, MVC/REST, Boot, stereotype, data access, scheduling, and testing annotations—explaining their purposes, usage rules, and providing Java code examples for each.
AnnotationsDependencyInjectionSpring
0 likes · 13 min read

This article presents a full‑stack Java SpringBoot project that manages community users and tracks epidemic data, employing RBAC for role‑based permissions, MySQL for storage, and various Spring modules such as SpringMVC, AOP, interceptors, and global exception handling.
BackendJavaMySQL
0 likes · 20 min read

This article walks through building a simple Spring MVC application, shows the necessary configuration files and code, and then breaks down the ten-step request‑handling process from DispatcherServlet to the final view rendered for the user.
MVCSpringMVCTutorial
0 likes · 6 min read

This article introduces Spring as a lightweight IoC and AOP container, explains Spring MVC as its web framework, describes Spring Boot's convention‑over‑configuration approach to simplify setup, and outlines how Spring Cloud builds on Spring Boot to provide micro‑service governance.
BackendJavaSpring
0 likes · 3 min read

This article demonstrates how to implement a merchant registration backend feature that supports uploading multiple images with preview using Spring MVC's MultipartFile, including controller handling, front‑end HTML/JS code, configuration for file size limits, and global exception handling.
ExceptionHandlingFileUploadJava
0 likes · 7 min read

This article explains how Spring MVC controller beans behave under singleton and prototype scopes, showing that normal instance fields are shared only in singleton beans while static fields are always shared, and recommends using @Scope("prototype") when defining controller attributes.
ControllerJavaSpringMVC
0 likes · 5 min read

This article provides a comprehensive overview of common Spring Boot annotations—including core annotations, MVC‑related annotations, JPA mapping annotations, and global exception handling—along with example Java code illustrating their practical usage in backend development.
AnnotationsJPAJava
0 likes · 8 min read

This article explains the four possible return types of Spring MVC controller methods—ModelAndView, void (including no‑value, redirect, and server‑side forward), String (as view name, redirect, forward, or raw response), and JSON—providing code examples and usage guidelines for each scenario.
BackendJavaReturn Types
0 likes · 8 min read

This article describes how a SpringMVC‑Dubbo micro‑service payment system was stress‑tested, diagnosed for thread‑creation and connection‑pool issues, and tuned through JVM, Log4j, and Dubbo configuration changes to raise throughput from 1 req/s to over 2600 req/s.
DubboJVM tuningSpringMVC
0 likes · 7 min read

The article provides a detailed comparison between Struts2 and SpringMVC, highlighting differences in request handling, interceptor mechanisms, memory usage, configuration complexity, Ajax integration, validation support, seamless Spring integration, design philosophy, development efficiency, performance, and configuration requirements.
BackendJavaMVC
0 likes · 4 min read
