Tag

SpringMVC

0 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 12, 2024 · Backend Development

Mastering Spring’s @PathVariable: Real‑World Examples and Advanced Tips

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.

JavaPathVariableREST
0 likes · 7 min read
Mastering Spring’s @PathVariable: Real‑World Examples and Advanced Tips
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 9, 2024 · Backend Development

Understanding RequestContextHolder Issues in Multithreaded Spring MVC Applications

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.

JavaRequestContextHolderServletRequestAttributes
0 likes · 8 min read
Understanding RequestContextHolder Issues in Multithreaded Spring MVC Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 13, 2023 · Backend Development

Using SpringMVC Interceptor to Prevent Duplicate Submissions

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.

InterceptorJavaSpringMVC
0 likes · 8 min read
Using SpringMVC Interceptor to Prevent Duplicate Submissions
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 27, 2023 · Backend Development

Applying the Chain of Responsibility Pattern in Spring MVC Interceptors

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.

InterceptorJavaSpringMVC
0 likes · 10 min read
Applying the Chain of Responsibility Pattern in Spring MVC Interceptors
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 24, 2023 · Backend Development

Applying the Chain of Responsibility Design Pattern in Spring MVC Interceptors

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.

InterceptorSpringMVCbackend development
0 likes · 10 min read
Applying the Chain of Responsibility Design Pattern in Spring MVC Interceptors
Java Architect Essentials
Java Architect Essentials
Apr 15, 2022 · Backend Development

Comprehensive Guide to Common Spring Framework Annotations

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.

AnnotationsDependencyInjectionJava
0 likes · 13 min read
Comprehensive Guide to Common Spring Framework Annotations
IT Xianyu
IT Xianyu
Oct 8, 2020 · Backend Development

Overview of Spring, Spring MVC, Spring Boot, and Spring Cloud

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.

JavaSpringSpringBoot
0 likes · 3 min read
Overview of Spring, Spring MVC, Spring Boot, and Spring Cloud
Top Architect
Top Architect
Sep 22, 2020 · Backend Development

Implementing Multi-Image Upload and Preview in Spring MVC

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
Implementing Multi-Image Upload and Preview in Spring MVC
Selected Java Interview Questions
Selected Java Interview Questions
Feb 19, 2020 · Backend Development

Understanding Singleton and Prototype Scope in Spring MVC Controllers

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.

ControllerJavaPrototype
0 likes · 5 min read
Understanding Singleton and Prototype Scope in Spring MVC Controllers
Java Captain
Java Captain
Oct 14, 2019 · Backend Development

Common Spring Boot Annotations and Their Usage

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
Common Spring Boot Annotations and Their Usage
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 11, 2019 · Backend Development

Understanding the Four Types of Return Values in Spring MVC

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.

JavaReturn TypesSpringMVC
0 likes · 8 min read
Understanding the Four Types of Return Values in Spring MVC
Architect's Tech Stack
Architect's Tech Stack
Dec 9, 2018 · Backend Development

Performance Optimization of a SpringMVC + Dubbo Based Offline Payment System

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
Performance Optimization of a SpringMVC + Dubbo Based Offline Payment System
Java Captain
Java Captain
Jun 15, 2018 · Backend Development

Comparison of Struts2 and SpringMVC: Architectural and Functional Differences

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.

JavaMVCSpringMVC
0 likes · 4 min read
Comparison of Struts2 and SpringMVC: Architectural and Functional Differences