Tagged articles
214 articles
Page 2 of 3
Top Architect
Top Architect
Apr 29, 2022 · Backend Development

Understanding Spring MVC Controller Singleton Scope and Thread Safety

The article explains that Spring MVC Controllers are singleton beans by default, discusses the thread‑safety risks of using instance variables in such Controllers, and presents several solutions—including prototype scope, ThreadLocal, and AtomicInteger—to ensure safe concurrent handling of requests.

Backend DevelopmentControllerJava
0 likes · 7 min read
Understanding Spring MVC Controller Singleton Scope and Thread Safety
Java Backend Technology
Java Backend Technology
Apr 20, 2022 · Backend Development

How to Implement Efficient MyBatis Streaming Queries in Spring MVC

This article explains the concept of streaming queries, introduces MyBatis's Cursor interface with its key methods, and provides three practical solutions—using SqlSessionFactory, TransactionTemplate, or @Transactional—to keep database connections open and avoid cursor‑closed errors in Spring MVC applications.

CursorJavaMyBatis
0 likes · 7 min read
How to Implement Efficient MyBatis Streaming Queries in Spring MVC
Top Architect
Top Architect
Mar 19, 2022 · Backend Development

Handling Multiple Content Types (JSON, Form, Form-Data) in Spring MVC with Custom Annotations

This article explains how to make a Spring MVC endpoint simultaneously accept JSON, URL‑encoded form data, and multipart/form‑data by creating a custom @GamePHP annotation, implementing dedicated argument resolvers, and configuring the necessary beans to replace the default @RequestBody and @RequestParam handling.

Backend DevelopmentContent-TypeCustom Annotation
0 likes · 7 min read
Handling Multiple Content Types (JSON, Form, Form-Data) in Spring MVC with Custom Annotations
Top Architect
Top Architect
Jan 8, 2022 · Backend Development

Comprehensive Guide to Spring MVC and Spring Boot Annotations

This article provides a detailed overview of Spring MVC request‑mapping annotations, Spring Bean and dependency‑injection annotations, and essential Spring Boot configuration annotations, illustrating their usage with code examples and explaining how they work together to build robust backend applications.

Backend DevelopmentSpring BootSpring MVC
0 likes · 13 min read
Comprehensive Guide to Spring MVC and Spring Boot Annotations
JavaEdge
JavaEdge
Dec 29, 2021 · Backend Development

Understanding Spring's Parent-Child Containers: Architecture, Startup Flow, and Common Pitfalls

This article explains the concept of Spring parent-child containers, their roles in separating web and service layers, the startup sequence of root and servlet WebApplicationContexts, how to verify their existence, and answers common configuration questions with code examples and diagrams.

Parent-Child ContainerSpring MVCWebApplicationContext
0 likes · 12 min read
Understanding Spring's Parent-Child Containers: Architecture, Startup Flow, and Common Pitfalls
Programmer DD
Programmer DD
Dec 21, 2021 · Backend Development

What’s New in Spring Framework 6.0? Key Changes and Migration Guide

Spring Framework 6.0 milestone introduces Jakarta EE package migrations, updates core containers, overhauls persistence APIs, modernizes servlet middleware with Tomcat 10, Jetty 11, Undertow 2.2.14, removes legacy components, and changes controller scanning and HttpMethod handling, while offering resources for learning Spring Boot and Cloud.

Backend DevelopmentServletSpring Framework
0 likes · 6 min read
What’s New in Spring Framework 6.0? Key Changes and Migration Guide
YunZhu Net Technology Team
YunZhu Net Technology Team
Nov 12, 2021 · Backend Development

Understanding How Spring MVC DispatcherServlet Registers Controllers and Dispatches Requests via HandlerMapping

This article explains, using servlet source code as a starting point, how Spring MVC registers @RequestMapping‑annotated controllers into RequestMappingHandlerMapping during container initialization and how the DispatcherServlet processes incoming HTTP requests by locating the appropriate HandlerMethod through a series of handler mappings and interceptor chains.

DispatcherServletHandlerMappingJava
0 likes · 17 min read
Understanding How Spring MVC DispatcherServlet Registers Controllers and Dispatches Requests via HandlerMapping
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 3, 2021 · Backend Development

Mastering Spring Web MVC Functional Routing with WebMvc.fn in Spring Boot

Explore Spring Web MVC's functional programming model (WebMvc.fn) in Spring Boot 2.4.12, covering immutable ServerRequest/ServerResponse, RouterFunction routing, handler functions, predicates, nested routes, filters, validation, and practical code examples for building clean, annotation‑free REST endpoints.

Backend DevelopmentFunctional RoutingJava
0 likes · 11 min read
Mastering Spring Web MVC Functional Routing with WebMvc.fn in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 1, 2021 · Backend Development

Understanding Spring MVC Request Flow: Controllers, Handlers, and Adapters

This guide explains Spring MVC's request handling flow, detailing core components like DispatcherServlet, HandlerMapping, and HandlerAdapter, and demonstrates multiple controller definitions—including @RestController, HttpRequestHandler, Controller interface, and HttpServlet extensions—along with necessary configuration snippets.

Backend DevelopmentControllerSpring Boot
0 likes · 5 min read
Understanding Spring MVC Request Flow: Controllers, Handlers, and Adapters
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 31, 2021 · Backend Development

Comprehensive Guide to Using Spring RestTemplate for HTTP Requests

This article provides a detailed tutorial on Spring's RestTemplate class, covering its overview, setup, and extensive examples of GET, POST, file download, header handling, dynamic URL parameters, and integration with HttpClient and OkHttp, along with complete code snippets and best‑practice recommendations for backend Java development.

APIBackendHTTP
0 likes · 25 min read
Comprehensive Guide to Using Spring RestTemplate for HTTP Requests
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 29, 2021 · Backend Development

How Spring MVC Resolves Controller Parameters and Builds Custom Argument Resolvers

This article explains the internal workflow of Spring MVC’s HandlerMethodArgumentResolver for processing controller method parameters, walks through the core source code steps, and demonstrates how to implement and register a custom argument resolver using a bespoke annotation.

Custom Argument ResolverHandlerMethodArgumentResolverJava
0 likes · 7 min read
How Spring MVC Resolves Controller Parameters and Builds Custom Argument Resolvers
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 27, 2021 · Backend Development

How Spring MVC Processes a Request: From DispatcherServlet to ViewResolver

This article explains step‑by‑step how Spring MVC handles an incoming HTTP request, detailing the roles of DispatcherServlet, HandlerMapping, HandlerAdapter, argument and return value resolvers, and ViewResolver, and includes key code excerpts that illustrate the matching and initialization processes.

DispatcherServletJava backendRequest Handling
0 likes · 7 min read
How Spring MVC Processes a Request: From DispatcherServlet to ViewResolver
Java Architect Essentials
Java Architect Essentials
Oct 15, 2021 · Backend Development

Master Spring MVC & Bean Annotations: A Complete Guide

This article provides a comprehensive overview of Spring MVC request‑mapping annotations, core Spring Bean annotations, dependency‑injection and scope configurations, container setup annotations, and essential Spring Boot annotations, each illustrated with clear code examples and usage tips.

Java backendSpring BootSpring MVC
0 likes · 16 min read
Master Spring MVC & Bean Annotations: A Complete Guide
Java Backend Technology
Java Backend Technology
Oct 12, 2021 · Backend Development

14 Must-Know Spring MVC Controller Tips for Better Backend Development

This article walks through fourteen practical techniques for building Spring MVC controllers, covering annotation‑based definitions, interface implementation, extending abstract classes, URL mapping, request method handling, parameter binding, model handling, redirects, form validation, file uploads, autowiring services, and best practices such as single‑responsibility and domain‑specific controller design.

ControllerJavaSpring MVC
0 likes · 16 min read
14 Must-Know Spring MVC Controller Tips for Better Backend Development
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 11, 2021 · Backend Development

How Spring Boot Registers Custom Error Pages with Tomcat

This article explains how Spring Boot registers custom error pages with its embedded Tomcat container, covering default HTML/JSON error responses, the underlying auto‑configuration classes, BeanPostProcessor registration, and the BasicErrorController that serves the default /error endpoint.

Backend DevelopmentError HandlingJava
0 likes · 11 min read
How Spring Boot Registers Custom Error Pages with Tomcat
ZhiKe AI
ZhiKe AI
Oct 9, 2021 · Backend Development

Inside Spring MVC: How DispatcherServlet Processes Requests

The article dissects Spring MVC’s core request flow, detailing how DispatcherServlet extends HttpServlet, delegates to FrameworkServlet, and ultimately routes requests through doService, doDispatch, handler adapters, interceptors, and result processing, with code excerpts illustrating each step.

DispatcherServletFrameworkServletJava Servlet
0 likes · 6 min read
Inside Spring MVC: How DispatcherServlet Processes Requests
Java Interview Crash Guide
Java Interview Crash Guide
Oct 3, 2021 · Backend Development

How Spring MVC Simplifies Server‑Side Development: From Servlets to DispatcherServlet

This article explains how Spring MVC evolved from basic Servlets to a front‑controller architecture, detailing the roles of DispatcherServlet, HandlerMapping, HandlerInterceptor, ModelAndView, and ViewResolver in streamlining request handling, business logic separation, and view rendering for modern Java web applications.

Backend DevelopmentDispatcherServletHandlerMapping
0 likes · 18 min read
How Spring MVC Simplifies Server‑Side Development: From Servlets to DispatcherServlet
Top Architect
Top Architect
Sep 25, 2021 · Backend Development

Hospital Registration System Using Java Spring MVC, MyBatis, and MySQL

This article provides a step‑by‑step tutorial for building a hospital registration web application with Java, Spring MVC, MyBatis, JSP pages, and MySQL, covering environment setup, database schema, DAO interfaces, service implementation, controller logic, and front‑end pages.

JSPJavaMyBatis
0 likes · 18 min read
Hospital Registration System Using Java Spring MVC, MyBatis, and MySQL
Code Ape Tech Column
Code Ape Tech Column
Sep 21, 2021 · Backend Development

Overview of Spring Web MVC, Bean, and Boot Annotations

This article provides a comprehensive guide to Spring MVC request‑mapping annotations, Spring Bean lifecycle and dependency‑injection annotations, as well as Spring Boot conditional and configuration annotations, illustrating each with code examples and usage notes for Java backend development.

JavaSpring BootSpring MVC
0 likes · 13 min read
Overview of Spring Web MVC, Bean, and Boot Annotations
Programmer DD
Programmer DD
Sep 14, 2021 · Backend Development

Why Spring MVC Controllers Are Singleton and How to Ensure Thread Safety

This article explains that Spring MVC controllers are singleton by default, illustrates the thread‑safety problems caused by shared instance variables with concrete code examples, and provides practical solutions such as avoiding state, using prototype scope, ThreadLocal, or AtomicInteger to make controllers safe under high concurrency.

ControllerJavaSingleton
0 likes · 6 min read
Why Spring MVC Controllers Are Singleton and How to Ensure Thread Safety
Top Architect
Top Architect
Sep 11, 2021 · Backend Development

14 Tips for Writing Spring MVC Controllers

This tutorial explains fourteen practical techniques for building Spring MVC controller classes, covering annotation‑based definitions, interface implementation, extending AbstractController, URL mapping, request method handling, parameter binding, model handling, redirects, form validation, file uploads, dependency injection, and best practices such as single‑responsibility and domain‑specific controllers.

ControllerJavaModelAndView
0 likes · 15 min read
14 Tips for Writing Spring MVC Controllers
Java Captain
Java Captain
Sep 4, 2021 · Backend Development

Hospital Registration System Using Java Spring MVC and MyBatis

This article presents a complete Java‑based hospital registration system built with Spring MVC, MyBatis, and JSP, detailing the development environment, database schema, source code for controllers, DAOs, services, configuration files, and web pages to enable patient search, registration, and status updates.

Hospital ManagementJSPJava
0 likes · 24 min read
Hospital Registration System Using Java Spring MVC and MyBatis
Programmer DD
Programmer DD
Aug 20, 2021 · Backend Development

Implementing Permission Validation in Spring MVC with Custom Annotations

This article explains how to set up permission validation in a Spring MVC project using user‑role‑resource tables, compares three verification approaches, and demonstrates a custom annotation solution with full controller and interceptor code examples.

Custom AnnotationInterceptorJava
0 likes · 4 min read
Implementing Permission Validation in Spring MVC with Custom Annotations
Java Tech Enthusiast
Java Tech Enthusiast
Aug 13, 2021 · Backend Development

Handling Request Parameters in Spring MVC

Spring MVC lets developers retrieve request data using the raw HttpServletRequest, or more conveniently with annotations such as @RequestParam, @RequestHeader, @RequestBody, and @CookieValue, supports automatic binding to POJOs including nested objects, injects native Servlet objects like HttpSession, and handles character encoding via CharacterEncodingFilter.

Backend DevelopmentJavaRequest Parameters
0 likes · 9 min read
Handling Request Parameters in Spring MVC
Top Architect
Top Architect
Jul 27, 2021 · Backend Development

Implementing Permission Validation in Spring MVC Using Custom Annotations

This article explains how to implement permission validation in Spring MVC by defining user, role, and resource tables, exploring three approaches—including request URI checks, method inspection, and custom annotations—and provides complete Java code examples for a custom annotation, controller, and interceptor to enforce access control.

Custom AnnotationInterceptorJava
0 likes · 4 min read
Implementing Permission Validation in Spring MVC Using Custom Annotations
ITPUB
ITPUB
Jul 2, 2021 · Backend Development

How to Solve CORS Issues in Spring Boot: Three Practical Configuration Methods

This article explains why CORS problems arise in front‑end/back‑end separation, introduces the CORS standard and request types, details the required response headers, and provides three concrete Spring Boot solutions—including global configuration, filter‑based handling, and the @CrossOrigin annotation—complete with code examples and migration notes.

BackendCORSConfiguration
0 likes · 10 min read
How to Solve CORS Issues in Spring Boot: Three Practical Configuration Methods
Top Architect
Top Architect
Jun 5, 2021 · Backend Development

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

This article provides a detailed overview of the most commonly used Spring Boot, Spring MVC, and JPA annotations, explains their purposes, shows how they interact, and includes practical code examples for building robust Java backend applications.

Backend DevelopmentJavaSpring Boot
0 likes · 11 min read
Comprehensive Guide to Spring Boot, Spring MVC, and JPA Annotations
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 21, 2021 · Backend Development

Understanding Servlet 3.0 Asynchronous Processing in Spring MVC and Spring Boot

This article explains the fundamentals of Servlet 3.0 asynchronous processing, demonstrates how Spring MVC builds on the Servlet API, and provides multiple practical examples—including starting async support, using AsyncContext, custom threads, listeners, timeouts, and real‑world scenarios—to help developers master non‑blocking request handling in Java web applications.

AsyncJavaServlet
0 likes · 24 min read
Understanding Servlet 3.0 Asynchronous Processing in Spring MVC and Spring Boot
Top Architect
Top Architect
May 14, 2021 · Backend Development

Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling

This article explains how Spring MVC evolved from basic Servlets to a sophisticated two‑level controller architecture, detailing the roles of DispatcherServlet, HandlerMapping, HandlerInterceptor, Handler, ModelAndView, ViewResolver, and View, while showing configuration examples and code snippets.

Backend DevelopmentDispatcherServletHandlerMapping
0 likes · 17 min read
Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling
Java Interview Crash Guide
Java Interview Crash Guide
Apr 29, 2021 · Backend Development

How Spring MVC Simplifies Server‑Side Development: From Servlets to DispatcherServlet

This article walks through the evolution from traditional Servlets to Spring MVC's DispatcherServlet, explaining how each component—Servlet, BaseServlet, DispatcherServlet, HandlerMapping, HandlerInterceptor, HandlerExecutionChain, ModelAndView, ViewResolver, and View—contributes to a cleaner, more modular server‑side architecture.

Backend DevelopmentDispatcherServletHandlerMapping
0 likes · 17 min read
How Spring MVC Simplifies Server‑Side Development: From Servlets to DispatcherServlet
Selected Java Interview Questions
Selected Java Interview Questions
Apr 29, 2021 · Backend Development

Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling

This article explains how Spring MVC evolved from basic Servlets to a two‑level controller architecture, detailing the roles of DispatcherServlet, HandlerMapping, HandlerInterceptor, ModelAndView, ViewResolver and View, and shows configuration examples that simplify server‑side development in Java web applications.

Backend DevelopmentDispatcherServletHandlerMapping
0 likes · 16 min read
Understanding Spring MVC: From Servlets to DispatcherServlet and Request Handling
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 12, 2021 · Backend Development

Mastering Spring MVC: Core Concepts, Components, and Annotations Explained

This comprehensive guide explains Spring MVC's MVC architecture, key components like DispatcherServlet and HandlerMapping, request processing flow, transaction management options, and essential annotations such as @Controller, @RequestMapping, @Autowired, and @Transactional, providing Java web developers with a clear, practical overview.

JavaSpring MVCWeb Development
0 likes · 38 min read
Mastering Spring MVC: Core Concepts, Components, and Annotations Explained
Top Architect
Top Architect
Mar 25, 2021 · Backend Development

Understanding the Working Principle of @ControllerAdvice in Spring MVC

This article explains how the @ControllerAdvice annotation is discovered and utilized within Spring MVC, detailing the initialization process, the caching of @ExceptionHandler, @ModelAttribute, and @InitBinder methods, and how these global configurations are applied by RequestMappingHandlerAdapter during request handling.

BackendControllerAdviceJava
0 likes · 12 min read
Understanding the Working Principle of @ControllerAdvice in Spring MVC
Java Captain
Java Captain
Jan 16, 2021 · Backend Development

Cinema Ticketing System Project Overview

This article presents a cinema ticketing system built with the SSM framework, MySQL, Redis, Alipay sandbox, LayUI, and Baidu ECharts, highlighting its architecture, features such as payment and seat selection, and providing source code link and screenshots.

AlipayEChartsMyBatis
0 likes · 1 min read
Cinema Ticketing System Project Overview
Selected Java Interview Questions
Selected Java Interview Questions
Dec 30, 2020 · Backend Development

Implementing Transparent RPC over Spring MVC: From REST to RPC Programming Model

The article explains how to replace a traditional Spring MVC‑based REST RPC framework with a transparent RPC model by extending DispatcherServlet, HandlerMapping, and HandlerAdapter, providing implicit service contracts, simplified client interfaces, and code examples for registration and request handling.

BackendHandlerMappingJava
0 likes · 16 min read
Implementing Transparent RPC over Spring MVC: From REST to RPC Programming Model
Programmer DD
Programmer DD
Dec 8, 2020 · Backend Development

Is Spring MVC Still Relevant in the Age of Reactive WebFlux?

The article argues that Spring MVC remains a mainstream Java web framework but explores how the rise of reactive programming and Spring WebFlux reshapes its relevance, highlighting the shift toward front‑back separation, @RestController usage, and the broader Reactive Revolution in web development.

Backend DevelopmentJavaSpring Boot
0 likes · 6 min read
Is Spring MVC Still Relevant in the Age of Reactive WebFlux?
Programmer DD
Programmer DD
Dec 8, 2020 · Backend Development

How to Implement Efficient MyBatis Streaming Queries in Spring

This article explains the concept of streaming queries, introduces MyBatis's Cursor interface, demonstrates common pitfalls with closed connections, and provides three practical solutions—using SqlSessionFactory, TransactionTemplate, or @Transactional—to safely perform large‑scale data retrieval in Spring applications.

CursorJavaMyBatis
0 likes · 7 min read
How to Implement Efficient MyBatis Streaming Queries in Spring
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 28, 2020 · Backend Development

How to Implement Efficient MyBatis Streaming Queries in Spring

This article explains the concept of streaming queries, introduces MyBatis's Cursor interface, demonstrates common pitfalls when the database connection closes prematurely, and provides three practical solutions—using SqlSessionFactory, TransactionTemplate, or @Transactional—to keep the connection open for efficient data retrieval.

CursorMyBatisSpring MVC
0 likes · 7 min read
How to Implement Efficient MyBatis Streaming Queries in Spring
Selected Java Interview Questions
Selected Java Interview Questions
Nov 27, 2020 · Backend Development

Non‑Intrusive Unified JSON Response Format and Global Handling in Spring MVC

This article explains how to design a non‑intrusive unified JSON response structure for Spring MVC applications, defines the standard JSON schema, provides Java enums and generic Result classes, demonstrates usage with @ResponseResultBody and @RestControllerAdvice, and shows comprehensive exception handling techniques.

BackendJSONJava
0 likes · 12 min read
Non‑Intrusive Unified JSON Response Format and Global Handling in Spring MVC
IT Xianyu
IT Xianyu
Nov 16, 2020 · Backend Development

14 Tips for Writing Spring MVC Controllers

This article presents fourteen practical techniques for creating Spring MVC controller classes, covering annotation-based definitions, interface implementation, extending abstract controllers, URL mapping, HTTP method specification, request parameter binding, model and view handling, redirects, form validation, file uploads, dependency injection, request/response access, and adherence to the single‑responsibility principle.

ControllerJavaSpring MVC
0 likes · 14 min read
14 Tips for Writing Spring MVC Controllers
Java Backend Technology
Java Backend Technology
Oct 13, 2020 · Backend Development

14 Essential Spring MVC Controller Tips to Boost Your Java Backend

This article presents fourteen practical techniques for writing Spring MVC controllers, covering annotation‑based definitions, interface implementation, abstract class extension, URL mapping, HTTP method handling, request parameter binding, model‑view returns, redirects, form validation, file uploads, dependency injection, servlet access, and single‑responsibility design, all illustrated with clear Java code examples.

ControllerJavaSpring Framework
0 likes · 16 min read
14 Essential Spring MVC Controller Tips to Boost Your Java Backend
Top Architect
Top Architect
Oct 1, 2020 · Backend Development

Implementing Pagination in Java Web Applications with Spring MVC and MyBatis

This article demonstrates how to implement pagination and search pagination in a Java web project using Spring MVC, MyBatis, and standard pagination utilities, covering the creation of a Page utility class, MyBatis mapper configurations, DAO interfaces, service methods, controller handling, and JSP view integration.

JavaMyBatisSpring MVC
0 likes · 10 min read
Implementing Pagination in Java Web Applications with Spring MVC and MyBatis
Top Architect
Top Architect
Sep 26, 2020 · Backend Development

Building a Mini Spring MVC Framework from Scratch Using Pure JDK

This article walks through creating a lightweight Spring MVC‑like framework by setting up a clean web project, defining custom annotations, implementing a DispatcherServlet that scans packages, instantiates beans, performs dependency injection, maps URLs to controller methods, and finally runs the application without any Spring dependencies.

Custom AnnotationsJavaServlet
0 likes · 5 min read
Building a Mini Spring MVC Framework from Scratch Using Pure JDK
Programmer DD
Programmer DD
Sep 17, 2020 · Backend Development

How to Implement Multi-Image Upload and Preview in Spring MVC

This guide walks through building a Spring MVC backend that accepts multiple image uploads, returns them for preview, and covers front‑end HTML, JavaScript handling, multipart configuration, and common pitfalls such as parameter naming, file size limits, and global exception handling.

Exception HandlingJavaScriptMultipartFile
0 likes · 7 min read
How to Implement Multi-Image Upload and Preview in Spring MVC
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 12, 2020 · Backend Development

Spring MVC Introduction, Core Principles, and Source Code Analysis

This article introduces Spring MVC, explains the problems of mixing JSP and Servlets, details the MVC layered architecture, walks through essential configuration files and Maven dependencies, presents sample controller code, and analyzes the DispatcherServlet source to illustrate the complete request‑response flow in a Java web application.

Backend DevelopmentConfigurationDispatcherServlet
0 likes · 23 min read
Spring MVC Introduction, Core Principles, and Source Code Analysis
Top Architect
Top Architect
Sep 8, 2020 · Backend Development

Comprehensive Guide to Spring Boot and JPA Annotations

This article provides a detailed overview of common Spring Boot, Spring MVC, and JPA annotations—including @SpringBootApplication, @RestController, @RequestMapping, and JPA mapping annotations—explaining their purposes, usage patterns, and example code snippets for building Java backend applications.

JavaSpring BootSpring MVC
0 likes · 9 min read
Comprehensive Guide to Spring Boot and JPA Annotations
Programmer DD
Programmer DD
Jul 7, 2020 · Backend Development

Mastering Spring MVC: Step-by-Step Flow and Core Code Explained

This article walks through the complete Spring MVC request handling flow, from setting request attributes and locating the handler to executing interceptors, invoking the controller, resolving the view, and finally rendering the response, with detailed code examples for each step.

HandlerAdapterJavaServlet
0 likes · 7 min read
Mastering Spring MVC: Step-by-Step Flow and Core Code Explained
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 10, 2020 · Fundamentals

Adapter Design Pattern: Concepts, Structure, Code Samples, and Spring MVC Application

This article explains the Adapter design pattern, illustrates its real‑world analogies, describes object and class adapter variants, provides complete Java code examples, demonstrates a voltage‑conversion demo, and shows how Spring MVC employs adapters to decouple controllers from request handling.

Adapter PatternClass AdapterDesign Patterns
0 likes · 15 min read
Adapter Design Pattern: Concepts, Structure, Code Samples, and Spring MVC Application
Youzan Coder
Youzan Coder
May 28, 2020 · Backend Development

Diagnosing High CPU Usage in Java Applications with Arthas

Using the open‑source Arthas tool, the author traced a Java server’s 99 % CPU usage to two runaway threads, inspected their stack traces, discovered a cyclic bucket in a HashBiMap caused by unsynchronized cache updates, and resolved the issue by adding a synchronized keyword to the cache‑sync method.

ArthasCPU profilingJava
0 likes · 10 min read
Diagnosing High CPU Usage in Java Applications with Arthas
Java Architecture Diary
Java Architecture Diary
Apr 13, 2020 · Backend Development

What Determines @ResponseBody’s Default Return Format in Spring MVC?

In Spring MVC, the default data format returned by @ResponseBody depends on the client’s Accept header, and the framework selects an appropriate HttpMessageConverter through RequestResponseBodyMethodProcessor, which evaluates acceptable and producible media types to produce JSON, XML, or other formats.

Accept HeaderHttpMessageConverterJava
0 likes · 5 min read
What Determines @ResponseBody’s Default Return Format in Spring MVC?
Java Architect Essentials
Java Architect Essentials
Mar 31, 2020 · Backend Development

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

This article provides a detailed overview of common Spring Boot, Spring MVC, and JPA annotations—including their purposes, usage patterns, and code examples—helping developers understand how to configure, map, and manage beans, controllers, and persistence in Java backend applications.

Backend DevelopmentSpring BootSpring MVC
0 likes · 9 min read
Comprehensive Guide to Spring Boot, Spring MVC, and JPA Annotations
Java Backend Technology
Java Backend Technology
Mar 31, 2020 · Backend Development

Mastering Spring Boot Annotations: A Complete Guide

This article provides a comprehensive overview of Spring Boot, Spring MVC, and JPA annotations, explaining their purposes, usage, and interactions, and includes practical code examples for each annotation to help developers quickly apply them in real projects.

BackendJavaSpring Boot
0 likes · 11 min read
Mastering Spring Boot Annotations: A Complete Guide
Programmer DD
Programmer DD
Mar 30, 2020 · Backend Development

Why Your Java Base Controllers Are Misused and How to Refactor Them

The article examines common misuse of base Controller and Service classes in Java micro‑service projects, explains why they violate design principles such as Liskov Substitution, and provides concrete refactoring steps—including moving injections, constants, and utility methods to appropriate layers—to achieve a clean three‑tier architecture.

JavaService LayerSpring MVC
0 likes · 24 min read
Why Your Java Base Controllers Are Misused and How to Refactor Them
Java Backend Technology
Java Backend Technology
Mar 19, 2020 · Backend Development

14 Essential Tips for Writing Spring MVC Controllers

This article presents fourteen practical techniques for building Spring MVC controllers, covering annotation usage, interface implementation, abstract class extension, URL mapping, HTTP method specification, request parameter binding, model handling, redirects, form processing, file uploads, dependency injection, servlet access, and single‑responsibility design.

ControllerJavaModelAndView
0 likes · 16 min read
14 Essential Tips for Writing Spring MVC Controllers
Programmer DD
Programmer DD
Mar 3, 2020 · Backend Development

How to Generate QR Codes in Java with ZXing: A Step‑by‑Step Guide

This tutorial explains why QR codes are everywhere, introduces their basic properties, and shows how to generate static and dynamic QR codes in Java using the ZXing library, Maven dependencies, Spring MVC, and optional Base64 streaming for front‑end display.

BackendJavaQR code
0 likes · 8 min read
How to Generate QR Codes in Java with ZXing: A Step‑by‑Step Guide
Architect's Tech Stack
Architect's Tech Stack
Dec 15, 2019 · Backend Development

Understanding Spring Boot, Spring MVC, and Spring: Differences and Auto‑Configuration Mechanism

This article explains the distinctions between Spring, Spring MVC, and Spring Boot, illustrates how Spring Boot achieves automatic configuration through annotations like @SpringBootApplication, @EnableAutoConfiguration, and @ComponentScan, and provides detailed code examples of the underlying mechanisms and related configuration classes.

Backend DevelopmentJava AnnotationsMyBatis
0 likes · 11 min read
Understanding Spring Boot, Spring MVC, and Spring: Differences and Auto‑Configuration Mechanism
Programmer DD
Programmer DD
Nov 21, 2019 · Backend Development

Mastering Ant‑Style Path Patterns in Spring MVC and Spring Security

This article explains the Ant‑style path matching syntax, its wildcards ?, *, **, the longest‑match rule, and demonstrates how to apply these patterns in Spring MVC controller mappings and Spring Security antMatchers for precise URI access control.

Ant patternBackend DevelopmentSpring MVC
0 likes · 5 min read
Mastering Ant‑Style Path Patterns in Spring MVC and Spring Security
Selected Java Interview Questions
Selected Java Interview Questions
Sep 29, 2019 · Backend Development

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

Spring, Spring MVC, Spring Boot, and Spring Cloud are Java frameworks that respectively provide core IoC/AOP functionality, web MVC capabilities, convention‑over‑configuration rapid development, and comprehensive microservice governance, together forming a layered ecosystem for building clean, manageable, and scalable backend applications.

BackendFrameworkJava
0 likes · 4 min read
Overview of Spring, Spring MVC, Spring Boot, and Spring Cloud
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 1, 2019 · Backend Development

Understanding Content-Type and Its Use in Spring MVC

This article explains the HTTP Content-Type header, outlines common media type values, and demonstrates how Spring MVC's RequestMapping annotation uses the consumes and produces attributes to filter requests and responses based on Content-Type, including practical code examples.

BackendContent-TypeHTTP
0 likes · 6 min read
Understanding Content-Type and Its Use in Spring MVC
Programmer DD
Programmer DD
Aug 29, 2019 · Backend Development

Why Choose Server‑Sent Events Over WebSocket for Simple Real‑Time Push?

The article explains how Server‑Sent Events (SSE) provide a lightweight, one‑way server‑to‑client push mechanism that avoids the complexity of WebSocket or polling, shows its protocol details, compares it with WebSocket, and demonstrates integration with Spring MVC and the browser EventSource API.

EventSourceSSEServer-Sent Events
0 likes · 6 min read
Why Choose Server‑Sent Events Over WebSocket for Simple Real‑Time Push?
Java Captain
Java Captain
Aug 24, 2019 · Backend Development

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

This article provides a detailed overview of the most commonly used Spring MVC request‑mapping annotations, Spring Bean stereotypes, dependency‑injection and scope annotations, container configuration annotations such as @Autowired and @Primary, and essential Spring Boot annotations, illustrating each with clear code examples and diagrams.

JavaSpring BootSpring MVC
0 likes · 18 min read
Comprehensive Guide to Spring MVC, Spring Bean, and Spring Boot Annotations
Java Backend Technology
Java Backend Technology
Aug 18, 2019 · Backend Development

Mastering Spring Annotations: From @Controller to @CacheEvict

This article provides a comprehensive guide to essential Spring annotations—including @Controller, @RestController, @Service, @Autowired, @RequestMapping, @ModelAttribute, @Cacheable, @CacheEvict, @Resource, @PostConstruct, @PreDestroy, @Repository, @Component, @Scope, @SessionAttributes, @Required and @Qualifier—explaining their purposes, usage patterns, and practical examples with accompanying diagrams.

JavaSpring MVCannotations
0 likes · 9 min read
Mastering Spring Annotations: From @Controller to @CacheEvict
Programmer DD
Programmer DD
Aug 7, 2019 · Backend Development

Mastering Date and Time Parameter Conversion in Spring MVC

This guide explains how to handle date and time parameters in Spring MVC by using @DateTimeFormat for request‑level conversion, configuring global formatters via WebMvcAutoConfiguration, and implementing custom Converter, GenericConverter, and Formatter beans to ensure seamless ISO‑8601 parsing.

Backend DevelopmentDate ConversionJava 8 Time
0 likes · 6 min read
Mastering Date and Time Parameter Conversion in Spring MVC
Programmer DD
Programmer DD
Jul 21, 2019 · Backend Development

Understanding Spring, Spring MVC, and Spring Boot: Core Problems Solved and Best Use Cases

This article provides a comprehensive overview of the Spring framework, Spring MVC, and Spring Boot, explaining how dependency injection reduces boilerplate and enables loose coupling, illustrating code examples with and without DI, and describing Spring Boot’s auto‑configuration, starter projects and typical starter options for building modern Java backend applications.

Backend DevelopmentJavaSpring Boot
0 likes · 12 min read
Understanding Spring, Spring MVC, and Spring Boot: Core Problems Solved and Best Use Cases
Java Captain
Java Captain
Mar 17, 2019 · Backend Development

JSP vs Servlet, Built‑in Objects, Scopes, Session vs Cookie, Spring MVC vs Struts, and Web Security Practices

This article explains the differences between JSP and Servlets, lists JSP built‑in objects and scopes, compares Session and Cookie mechanisms, describes session operation and alternatives when cookies are disabled, contrasts Spring MVC with Struts, and outlines common web security measures such as preventing SQL injection, XSS, and CSRF attacks.

CookieJSPServlet
0 likes · 15 min read
JSP vs Servlet, Built‑in Objects, Scopes, Session vs Cookie, Spring MVC vs Struts, and Web Security Practices
Java Captain
Java Captain
Dec 17, 2018 · Backend Development

Overview of Traditional Three‑Tier, Cluster, Distributed, and Microservice Architectures for Java Web Applications

The article explains the evolution from classic three‑tier Java web architecture to cluster, distributed, and microservice designs, detailing each model’s components, load‑balancing mechanisms, session sharing, and the trade‑offs of using technologies such as Tomcat, Nginx, Dubbo, and Spring Cloud.

ClusterDistributed SystemsJava
0 likes · 9 min read
Overview of Traditional Three‑Tier, Cluster, Distributed, and Microservice Architectures for Java Web Applications
Java Captain
Java Captain
Dec 12, 2018 · Backend Development

Configuring Spring MVC with JSP, JSTL, Custom Tags, and JavaScript for a Seckill Application

This tutorial demonstrates how to configure Spring MVC in a Java web project by modifying web.xml, creating DispatcherServlet, implementing controllers and DTOs, setting up JSP pages with Bootstrap, handling JSTL date formatting using custom tags for Java 8 LocalDateTime, and integrating modular JavaScript for a seckill (flash sale) application.

BootstrapCustom TagsJSP
0 likes · 17 min read
Configuring Spring MVC with JSP, JSTL, Custom Tags, and JavaScript for a Seckill Application
Java Captain
Java Captain
Dec 3, 2018 · Backend Development

Common Spring Framework Annotations and Their Usage

This article explains the purpose and usage of frequently used Spring annotations such as @Controller, @RestController, @Service, @Autowired, @RequestMapping, @RequestParam, @ModelAttribute, @Cacheable, @CacheEvict, @Resource, @PostConstruct, @PreDestroy, @Repository, @Component, @Scope, @SessionAttributes, and @Qualifier, providing code examples and practical notes for Java backend development.

JavaSpring MVCannotations
0 likes · 12 min read
Common Spring Framework Annotations and Their Usage
Java Captain
Java Captain
Dec 2, 2018 · Backend Development

Deep Dive into Spring MVC Request Processing Flow

This article walks through the Spring MVC request handling pipeline step by step, explaining how DispatcherServlet sets attributes, resolves handlers, invokes handler adapters, runs pre‑ and post‑interceptors, creates ModelAndView, resolves the view and finally renders the response, with code examples from the original framework.

DispatcherServletHandlerAdapterJava
0 likes · 5 min read
Deep Dive into Spring MVC Request Processing Flow
Java Captain
Java Captain
Nov 16, 2018 · Backend Development

Spring, Spring MVC, and MyBatis Interview Questions and Answers

This article compiles common interview questions and concise answers about Spring, Spring MVC, and MyBatis, covering core concepts such as IoC, AOP, transaction management, controller behavior, annotation usage, design patterns, MyBatis configuration, mapping techniques, pagination, and integration with Ajax.

Backend DevelopmentJavaMyBatis
0 likes · 10 min read
Spring, Spring MVC, and MyBatis Interview Questions and Answers
Java Captain
Java Captain
Oct 30, 2018 · Backend Development

Understanding Spring MVC: Architecture, Core Components, and Configuration

This article explains the MVC pattern and provides a detailed introduction to Spring MVC, covering its core DispatcherServlet, required web.xml configuration, request processing flow, key components such as HandlerMapping, HandlerAdapter, ViewResolver, and includes code examples and component descriptions for backend developers.

Backend DevelopmentDispatcherServletJava
0 likes · 10 min read
Understanding Spring MVC: Architecture, Core Components, and Configuration
Java Backend Technology
Java Backend Technology
Oct 24, 2018 · Backend Development

Why My Java App Hits 100% CPU: Live Infinite Loop Demo & Diagnosis

This article walks through setting up a Vagrant‑based experiment that injects an intentional infinite loop into a simple Spring MVC service, then demonstrates step‑by‑step how to identify the offending process using top, examine JVM heap with jstat, and trace the problematic thread with jstack to resolve a CPU‑100% issue.

CPUJVMJava
0 likes · 4 min read
Why My Java App Hits 100% CPU: Live Infinite Loop Demo & Diagnosis
Java Captain
Java Captain
Sep 22, 2018 · Backend Development

EasyExcel Method Encapsulation for Simplified Excel Import and Export in Java

This article introduces a lightweight Java wrapper around Alibaba's EasyExcel library that enables one‑line Excel import and export, explains required Maven dependencies, essential utility classes, and provides complete code examples for reading, writing single‑sheet and multi‑sheet workbooks with custom model mappings.

Excel ImportJavaSpring MVC
0 likes · 8 min read
EasyExcel Method Encapsulation for Simplified Excel Import and Export in Java
Java Captain
Java Captain
Sep 16, 2018 · Backend Development

Building a Mini Spring MVC Framework from Scratch Using Pure JDK

This tutorial walks through creating a miniature Spring MVC framework using only the JDK, covering custom annotations, package scanning, component instantiation, dependency injection, URL mapping, and a custom DispatcherServlet, with complete code structure and runtime demonstration.

BackendCustom AnnotationsDispatcherServlet
0 likes · 8 min read
Building a Mini Spring MVC Framework from Scratch Using Pure JDK
Programmer DD
Programmer DD
Sep 16, 2018 · Backend Development

Mastering @RequestBody and @ResponseBody in Spring MVC: A Quick Guide

This article explains how Spring MVC uses @RequestBody to deserialize JSON request bodies into Java objects and @ResponseBody to serialize Java objects back to JSON, providing clear code examples, curl testing, and notes on @RestController behavior.

@RequestBodyBackend DevelopmentJava
0 likes · 4 min read
Mastering @RequestBody and @ResponseBody in Spring MVC: A Quick Guide
Architecture Digest
Architecture Digest
Aug 11, 2018 · Backend Development

Understanding Synchronous vs Asynchronous, Blocking vs Non‑Blocking, and Full‑Chain Asynchrony in Java Web Applications

This article explains the differences between synchronous, asynchronous, blocking and non‑blocking execution, illustrates their combinations with real‑world analogies, and provides practical guidance on applying servlet async, Spring MVC async, full‑chain async, HTTP client async and database async techniques to improve Java backend throughput and CPU utilization.

HTTP clientJavaServlet
0 likes · 17 min read
Understanding Synchronous vs Asynchronous, Blocking vs Non‑Blocking, and Full‑Chain Asynchrony in Java Web Applications
Programmer DD
Programmer DD
Jul 3, 2018 · Backend Development

Master Java Exception Handling in Spring MVC: Custom Exceptions & Global Advice

This article explains how to design and implement robust Java exception handling for business systems using Spring MVC, covering when to create custom exceptions, how to structure service and controller code, and how to centralize error responses with @ControllerAdvice for clean, maintainable backend development.

Backend DevelopmentControllerAdviceException Handling
0 likes · 13 min read
Master Java Exception Handling in Spring MVC: Custom Exceptions & Global Advice
Java Captain
Java Captain
Jun 2, 2018 · Backend Development

Understanding the SSM Framework: Integration of Spring MVC, Spring, and MyBatis

This article explains the SSM framework, detailing how Spring MVC, Spring, and MyBatis are integrated into a standard MVC architecture, describing their roles, underlying principles, and step‑by‑step guidance for building a functional feature with entities, mappers, services, controllers, and JSP views.

BackendJavaMVC
0 likes · 4 min read
Understanding the SSM Framework: Integration of Spring MVC, Spring, and MyBatis
Java Captain
Java Captain
Apr 27, 2018 · Information Security

Integrating Apache Shiro with Spring MVC: Detailed Example and Configuration Guide

This article provides a step‑by‑step tutorial on using Apache Shiro for authentication, authorization, session management and encryption in a Java web project, covering Maven dependencies, custom Realm implementation, Spring XML configuration, servlet filter setup, controller logic, JSP login page, demo screenshots and common pitfalls.

Apache ShiroAuthorizationJava Security
0 likes · 17 min read
Integrating Apache Shiro with Spring MVC: Detailed Example and Configuration Guide
Java Captain
Java Captain
Apr 18, 2018 · Backend Development

Java Shopping Cart Implementation Using Cookies, Redis, and Spring MVC

This article explains how to implement a shopping cart in Java by handling four login scenarios, defining BuyerCart and BuyerItem beans, using JavaScript and Spring MVC controllers to add items, persisting cart data in cookies or Redis, converting objects to JSON with ObjectMapper, managing sessions, and validating stock before checkout.

Backend DevelopmentCookieJava
0 likes · 17 min read
Java Shopping Cart Implementation Using Cookies, Redis, and Spring MVC
Java Captain
Java Captain
Apr 5, 2018 · Backend Development

Guide to Integrating Spring Framework, Spring MVC, and MyBatis

This article provides a step‑by‑step tutorial on building a Spring container, configuring Spring MVC with DispatcherServlet, setting up essential beans such as multipartResolver, custom handler mapping, handler adapter, view resolver, component scanning, and finally integrating MyBatis with SqlSessionFactoryBean and SqlSessionTemplate for a complete Java backend solution.

Backend DevelopmentJavaMyBatis
0 likes · 10 min read
Guide to Integrating Spring Framework, Spring MVC, and MyBatis
Java Captain
Java Captain
Mar 28, 2018 · Backend Development

Comprehensive Guide to Spring MVC Annotations and Their Usage

This article provides an in‑depth overview of Spring MVC annotations such as @Controller, @RequestMapping, @Autowired, @Resource, @ModelAttribute, @SessionAttributes, @PathVariable, and @RequestParam, explaining their purposes, configuration methods, attribute injection rules, and advanced usage with practical code examples.

Backend DevelopmentJavaSpring MVC
0 likes · 23 min read
Comprehensive Guide to Spring MVC Annotations and Their Usage