Tagged articles
152 articles
Page 2 of 2
macrozheng
macrozheng
Jul 1, 2022 · Backend Development

Mastering Spring Boot Controllers: Unified Validation, Response, and Exception Handling

This tutorial explains how to structure a Spring Boot controller layer, validate request parameters with @Validated, wrap responses in a standard ResultVo format, define unified status codes, and handle exceptions globally using @RestControllerAdvice and AOP, while also providing a way to skip wrapping for specific endpoints.

ControllerException HandlingREST API
0 likes · 18 min read
Mastering Spring Boot Controllers: Unified Validation, Response, and Exception Handling
Java Architect Essentials
Java Architect Essentials
Jun 26, 2022 · Backend Development

Unified Controller Layer Handling, Validation, and Exception Management in Spring Boot

This article explains how to structure a Spring Boot controller layer by separating URL, request method, request data, and response data, then introduces unified status‑code packaging with ResultVo, parameter validation using @Validated, and centralized exception handling with @RestControllerAdvice and AOP to produce consistent API responses.

ControllerException HandlingResultVo
0 likes · 18 min read
Unified Controller Layer Handling, Validation, and Exception Management in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Jun 7, 2022 · Backend Development

Unified Parameter Validation, Response Wrapping, and Exception Handling in Spring Boot Controllers

This article explains how to handle controller parameters, implement unified status codes with ResultVo, apply @Validated for request validation, and use @RestControllerAdvice together with ResponseBodyAdvice to automatically wrap responses and centralize exception handling in a Spring Boot backend.

ControllerResponseWrapperSpringBoot
0 likes · 18 min read
Unified Parameter Validation, Response Wrapping, and Exception Handling in Spring Boot Controllers
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
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.

ControllerSingletonSpring MVC
0 likes · 7 min read
Understanding Spring MVC Controller Singleton Scope and Thread Safety
IT Architects Alliance
IT Architects Alliance
Apr 19, 2022 · Backend Development

Mastering Application Layering: From Alibaba Standards to Practical Optimizations

This article examines common misconceptions about application layering, outlines essential criteria for effective layering, details Alibaba's official multi‑layer architecture, proposes an optimized layering approach with clear responsibilities for controllers, services, managers, and DAOs, and explains domain model conversions across layers.

Alibaba standardsBackend ArchitectureController
0 likes · 9 min read
Mastering Application Layering: From Alibaba Standards to Practical Optimizations
Test Development Learning Exchange
Test Development Learning Exchange
Mar 29, 2022 · Backend Development

Quickly Set Up a Spring Boot Project in IntelliJ IDEA

This step‑by‑step guide shows how to configure JDK 1.8 and Maven 3.6.2, create a new Spring Boot project in IntelliJ IDEA using Spring Initializr, examine the generated pom.xml, add a simple HelloController, and verify that the application runs successfully.

ControllerIntelliJ IDEASpring Boot
0 likes · 3 min read
Quickly Set Up a Spring Boot Project in IntelliJ IDEA
Top Architect
Top Architect
Mar 14, 2022 · Backend Development

Understanding Spring Controller Scope: Singleton vs Prototype and Best Practices

This article explains why Spring MVC controllers are singleton by default, demonstrates the thread‑unsafe behavior of using instance fields, shows how applying @Scope("prototype") changes the behavior, and provides practical recommendations such as avoiding mutable fields, using prototype scope or ThreadLocal for safe controller design.

ControllerSingletonjava
0 likes · 6 min read
Understanding Spring Controller Scope: Singleton vs Prototype and Best Practices
Java Interview Crash Guide
Java Interview Crash Guide
Jan 24, 2022 · Backend Development

Optimizing a Single‑Database Order System: Core User Flow Walkthrough

This article walks through the core functionalities and business flows of a single‑database order system—covering user order placement, order list queries, detail views, and cancellations—while explaining how Controller, Service, Repository, and Mapper components interact within the backend architecture.

Backend ArchitectureControllerMicroservices
0 likes · 6 min read
Optimizing a Single‑Database Order System: Core User Flow Walkthrough
Top Architect
Top Architect
Nov 13, 2021 · Backend Development

Parameter Validation in the Controller Layer Using Hibernate Validator

This article explains how to cleanly perform parameter validation in Java backend applications by placing business‑independent checks in the Controller layer with Hibernate Validator and optional custom annotations, while business‑related checks belong to the Service layer.

ControllerHibernate ValidatorParameter Validation
0 likes · 6 min read
Parameter Validation in the Controller Layer Using Hibernate Validator
Programmer DD
Programmer DD
Nov 13, 2021 · Backend Development

Mastering Parameter Validation in Spring Boot: Hibernate Validator Best Practices

This article explains how to perform elegant parameter validation in Spring Boot by distinguishing controller‑level and service‑level checks, introduces Hibernate Validator annotations, demonstrates their usage with code examples, and shows additional utilities like commons‑lang3 and custom validation annotations for robust backend development.

ControllerHibernate ValidatorParameter Validation
0 likes · 6 min read
Mastering Parameter Validation in Spring Boot: Hibernate Validator Best Practices
Architecture Digest
Architecture Digest
Nov 5, 2021 · Backend Development

Parameter Validation in Spring: Controller vs Service Layer, Hibernate Validator, and Commons‑Lang3

This article explains how to place parameter validation in the appropriate Spring layer, demonstrates using Hibernate Validator and commons‑lang3 for concise validation annotations, provides code examples for entity definitions and controller methods, and mentions creating custom validation annotations when needed.

Commons Lang3ControllerHibernate Validator
0 likes · 6 min read
Parameter Validation in Spring: Controller vs Service Layer, Hibernate Validator, and Commons‑Lang3
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.

ControllerSpring BootSpring MVC
0 likes · 5 min read
Understanding Spring MVC Request Flow: Controllers, Handlers, and Adapters
Open Source Linux
Open Source Linux
Oct 18, 2021 · Fundamentals

Understanding NVMe over PCIe: Architecture, Commands, and Data Structures

This article provides a comprehensive overview of the NVMe protocol over PCIe, covering its logical device interface, key terminology, SSD architecture, PCIe register configuration, controller registers, queue structures, arbitration mechanisms, PRP and SGL addressing, command sets, controller initialization, reset procedures, shutdown processes, host command examples, and advanced features such as firmware updates and end‑to‑end data protection.

ControllerNVMePCIe
0 likes · 25 min read
Understanding NVMe over PCIe: Architecture, Commands, and Data Structures
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.

ControllerSpring MVCjava
0 likes · 16 min read
14 Must-Know Spring MVC Controller Tips for Better Backend Development
Tencent Cloud Developer
Tencent Cloud Developer
Oct 8, 2021 · Operations

Unveiling Kafka’s Controller: Architecture, Election, and Monitoring Deep Dive

This article provides a comprehensive technical analysis of Kafka’s Controller component, covering its background, core responsibilities, data storage, election process, version‑specific improvements, monitoring techniques, and key source‑code excerpts to help engineers understand and manage Kafka clusters effectively.

Cluster ManagementControllerDistributed Systems
0 likes · 27 min read
Unveiling Kafka’s Controller: Architecture, Election, and Monitoring Deep Dive
Architects' Tech Alliance
Architects' Tech Alliance
Sep 21, 2021 · Fundamentals

NVMe over PCIe: Specification Overview, Architecture, Register Configuration, Commands, and Data Structures

This article provides a comprehensive technical overview of the NVMe (Non‑Volatile Memory Express) specification, covering its logical device interface, namespace concepts, queue structures, PCIe register layout, command formats, controller initialization, interrupt handling, and data protection mechanisms.

ControllerNVMePCIe
0 likes · 28 min read
NVMe over PCIe: Specification Overview, Architecture, Register Configuration, Commands, and Data Structures
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.

ControllerSingletonSpring MVC
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.

ControllerModelAndViewSpring MVC
0 likes · 15 min read
14 Tips for Writing Spring MVC Controllers
Zhongtong Tech
Zhongtong Tech
May 11, 2021 · Cloud Native

Why Ingress‑NGINX Crashed: Hidden TLS Secret Pitfall and How to Fix It

A morning outage revealed an ingress‑nginx CrashLoopBackOff caused by a non‑TLS secret, and this article walks through the log analysis, code inspection of the controller startup, the faulty extractTLSSecretName logic, and the two‑pronged fix to prevent future crashes.

ControllerCrashLoopBackOffKubernetes
0 likes · 14 min read
Why Ingress‑NGINX Crashed: Hidden TLS Secret Pitfall and How to Fix It
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 13, 2021 · Big Data

Kafka Architecture and Implementation Principles – Theory Part

This article provides a comprehensive, diagram‑driven explanation of Kafka’s architecture, covering producers, consumers, topics, partitions, replication, Zookeeper coordination, controller election, state machines, and the NIO‑based network model, helping readers understand the design philosophy and practical configuration implications.

ControllerDistributed SystemsReplication
0 likes · 15 min read
Kafka Architecture and Implementation Principles – Theory Part
Top Architect
Top Architect
Mar 1, 2021 · Backend Development

Application Layering Best Practices and Alibaba Specification

This article explains the importance of clear application layering, compares common misconceptions with Alibaba's recommended multi‑layer architecture, discusses how to implement and optimize layers such as controller, service, manager, and DAO, and outlines domain model conversions to improve maintainability and reuse.

Alibaba standardsControllerService Layer
0 likes · 8 min read
Application Layering Best Practices and Alibaba Specification
php Courses
php Courses
Dec 16, 2020 · Backend Development

Implementing Data Validation with ThinkPHP5's Validate Class

This tutorial demonstrates how to create a ThinkPHP5 validation class, build a simple HTML form, and write a backend controller method to validate input data using scenes, providing step‑by‑step code examples for PHP developers.

ControllerFormPHP
0 likes · 3 min read
Implementing Data Validation with ThinkPHP5's Validate Class
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.

ControllerSpring MVCWeb Development
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.

ControllerSpring FrameworkSpring MVC
0 likes · 16 min read
14 Essential Spring MVC Controller Tips to Boost Your Java Backend
Java Backend Technology
Java Backend Technology
Aug 18, 2020 · Backend Development

Why Spring Controllers Are Not Thread‑Safe and How to Fix Them

Spring MVC controllers are singleton by default, which can cause thread‑unsafe behavior when using non‑static member variables; this article demonstrates the issue with example endpoints, shows how prototype scope resolves it, and outlines best practices such as avoiding stateful fields or using ThreadLocal.

Bean ScopeControllerSingleton
0 likes · 5 min read
Why Spring Controllers Are Not Thread‑Safe and How to Fix Them
Top Architect
Top Architect
Aug 6, 2020 · Backend Development

Understanding Spring Controller Bean Scope: Singleton vs Prototype and Thread Safety

This article explains why Spring MVC controllers are singleton by default, demonstrates the thread‑safety issues caused by shared instance variables, shows how to test the behavior with sample code, and presents solutions such as using prototype scope, avoiding member variables, or employing ThreadLocal.

Bean ScopeControllerSingleton
0 likes · 6 min read
Understanding Spring Controller Bean Scope: Singleton vs Prototype and Thread Safety
Selected Java Interview Questions
Selected Java Interview Questions
Jul 27, 2020 · Backend Development

Understanding Spring Controller Scope and Thread Safety

The article explains why Spring MVC controllers are singleton by default, demonstrates the resulting thread‑unsafe behavior with example code, shows how applying @Scope("prototype") makes them prototype scoped, and provides best‑practice recommendations and a summary of Spring bean scopes.

ControllerSingletonbean
0 likes · 5 min read
Understanding Spring Controller Scope and Thread Safety
Ops Development Stories
Ops Development Stories
Apr 28, 2020 · Cloud Native

Why Kubernetes? A Visual Guide to Containers, Pods, and Cluster Architecture

This article offers a pictorial introduction to Kubernetes, explaining what containers are, when to use orchestration, why Kubernetes stands out, and detailing its core architecture—including master components, pods, controllers, services, and ingress—providing a clear, beginner-friendly overview of container orchestration in cloud-native environments.

Cloud NativeContainersController
0 likes · 10 min read
Why Kubernetes? A Visual Guide to Containers, Pods, and Cluster Architecture
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.

ControllerModelAndViewRequestMapping
0 likes · 16 min read
14 Essential Tips for Writing Spring MVC Controllers
Architecture Digest
Architecture Digest
Feb 1, 2020 · Backend Development

Designing a Unified API Response Structure with Annotations and Controllers

This article explains how to standardize backend API responses by defining a JSON result format, using HTTP‑like status codes, creating a Result wrapper class, and applying a custom @ResponseResult annotation together with a Spring interceptor and ResponseBodyAdvice to automatically wrap controller outputs for cleaner, more maintainable code.

APIBackendController
0 likes · 7 min read
Designing a Unified API Response Structure with Annotations and Controllers
Cloud Native Technology Community
Cloud Native Technology Community
Dec 18, 2019 · Cloud Native

Deep Dive into the Kubernetes Job Controller Implementation

This article provides a detailed walkthrough of the Kubernetes Job controller source code, explaining the flow from kube‑controller‑manager initialization through key functions such as NewJobController, Run, worker, syncJob, and manageJob, and illustrates how informers, workqueues, and expectations coordinate job lifecycle management.

CloudNativeControllerGo
0 likes · 17 min read
Deep Dive into the Kubernetes Job Controller Implementation
Alibaba Cloud Native
Alibaba Cloud Native
Oct 8, 2019 · Cloud Native

Mastering Kubernetes Jobs, CronJobs, and DaemonSets: Concepts, YAML, and Real‑World Walkthroughs

This guide walks Kubernetes beginners through the fundamentals of Job, CronJob, and DaemonSet controllers, explaining their use‑cases, key fields such as restartPolicy, backoffLimit, parallelism, and schedule, and provides step‑by‑step YAML examples and command‑line verification to illustrate parallel execution, scheduling, and update strategies.

ControllerCronJobDaemonSet
0 likes · 19 min read
Mastering Kubernetes Jobs, CronJobs, and DaemonSets: Concepts, YAML, and Real‑World Walkthroughs
Alibaba Cloud Native
Alibaba Cloud Native
Sep 24, 2019 · Cloud Native

How Kubebuilder Simplifies Building Custom Kubernetes Controllers and CRDs

This article explains the controller pattern and declarative API in Kubernetes, dives deep into Kubebuilder's architecture—including GVK/GVR, Scheme, Manager, Cache, and Controller components—and provides step‑by‑step guidance with code examples for creating, configuring, and deploying custom resources and their controllers.

CRDControllerGo
0 likes · 24 min read
How Kubebuilder Simplifies Building Custom Kubernetes Controllers and CRDs
Java Captain
Java Captain
Jul 28, 2019 · Backend Development

Application Layering: Principles, Alibaba Specification, and Optimized Practices

The article explains why clear application layering—controller, service, manager, DAO—is essential for maintainable backend code, reviews Alibaba's official layer definitions, proposes an optimized layering model with a Thrift TService layer, and discusses domain model conversions to balance reuse and simplicity.

Alibaba specificationControllerService Layer
0 likes · 8 min read
Application Layering: Principles, Alibaba Specification, and Optimized Practices
Java Captain
Java Captain
Oct 15, 2018 · Backend Development

Implementing AOP in Java Controllers: Guidelines and Code Example

This article explains how to use Aspect‑Oriented Programming (AOP) in Java backend controllers by defining a unified ResultBean response format, outlining controller coding conventions, and providing complete Java and XML examples for logging, exception handling, and AOP configuration.

ControllerException HandlingResultBean
0 likes · 5 min read
Implementing AOP in Java Controllers: Guidelines and Code Example
Java Backend Technology
Java Backend Technology
Jul 23, 2018 · Backend Development

Mastering Application Layering: Best Practices for Clean Backend Architecture

This article explains why clear application layering matters, outlines Alibaba's recommended layer structure, proposes an optimized layering model with distinct responsibilities, and details domain model conventions to improve code reuse, maintainability, and team collaboration in backend development.

Backend ArchitectureControllerLayered Design
0 likes · 8 min read
Mastering Application Layering: Best Practices for Clean Backend Architecture
Alibaba Cloud Native
Alibaba Cloud Native
Mar 22, 2018 · Cloud Native

Understanding Kubernetes’ Core Design: Declarative Data, List‑Watch, and Level Trigger

This article explains Kubernetes’ fundamental design principles—including declarative state, level‑trigger messaging, and the list‑watch mechanism—by walking through a ReplicationController‑based runtime flow, detailing each component’s role, and analyzing the reliability, ordering, and real‑time requirements of the watch system.

ControllerDeclarativeKubernetes
0 likes · 13 min read
Understanding Kubernetes’ Core Design: Declarative Data, List‑Watch, and Level Trigger
Architects' Tech Alliance
Architects' Tech Alliance
Aug 6, 2017 · Industry Insights

Inside a Generic SSD Controller: Key Components and Their Roles

This article provides a detailed overview of the main building blocks of a generic SSD controller, explaining how each part—from host interfaces and SMART monitoring to wear leveling, encryption engines, and defect management—interacts with NAND flash to deliver performance, reliability, and security.

ControllerHardwareNAND
0 likes · 7 min read
Inside a Generic SSD Controller: Key Components and Their Roles
Suning Design
Suning Design
Oct 12, 2016 · Game Development

How Daydream’s Controller Redefines Mobile VR Interaction

This article explores Google Daydream’s controller—from its pocket‑sized hardware and Bluetooth connection to its ray‑cast cursor, continuous and discrete motion gestures, touch‑pad click mechanics, and button functions—showing how hand‑based control upgrades VR experiences while reducing neck strain.

ControllerDaydreamGame
0 likes · 14 min read
How Daydream’s Controller Redefines Mobile VR Interaction