Tag

Controller

1 views collected around this technical thread.

360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Jun 10, 2025 · Cloud Native

Build a Custom Kubernetes Controller from Scratch: Init, Code, Docker, Helm

This step‑by‑step guide walks you through initializing a Kubernetes controller project with kubebuilder, writing the Reconcile logic, debugging and performance monitoring, building and pushing Docker images, and deploying the controller using Helm charts, while also covering metrics collection, RBAC configuration, and best practices for cloud‑native workloads.

ControllerDockerHelm
0 likes · 19 min read
Build a Custom Kubernetes Controller from Scratch: Init, Code, Docker, Helm
macrozheng
macrozheng
Jun 5, 2025 · Backend Development

How to Refactor Spring Boot Controllers for Cleaner, More Maintainable Code

This article compares messy and elegant Spring Boot controller implementations, demonstrates how to use @Valid for input validation, introduces a concise global exception handler, and provides practical refactoring steps and open‑source resources to dramatically reduce controller code size and improve maintainability.

@ValidBackend DevelopmentController
0 likes · 10 min read
How to Refactor Spring Boot Controllers for Cleaner, More Maintainable Code
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
Architect
Architect
May 27, 2025 · Backend Development

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

This article explains how to refactor a Spring MVC Controller layer by separating responsibilities, implementing a unified response structure, handling String response conversion, customizing validation with JSR‑303, and creating centralized exception handling to produce consistent API results.

ControllerException HandlingJava
0 likes · 20 min read
Improving Spring MVC Controller Layer: 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.

ControllerExceptionHandlingResponseBodyAdvice
0 likes · 17 min read
Best Practices for Designing a Robust Spring MVC Controller Layer
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 8, 2025 · Backend Development

Master Spring Boot 3 Controllers: Real‑World Cases & Advanced Techniques

Explore a comprehensive Spring Boot 3 tutorial featuring 122 real‑world controller examples—from basic @RestController setup and dynamic URL configuration to advanced SpEL usage, interface default methods, exception handling, data binding, and custom endpoints—complete with code snippets and test results.

Backend DevelopmentControllerJava
0 likes · 8 min read
Master Spring Boot 3 Controllers: Real‑World Cases & Advanced Techniques
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.

Backend DevelopmentControllerException Handling
0 likes · 18 min read
Refactoring Controller Layer Logic: Unified Response Structure, Parameter Validation, and Global Exception Handling in Spring
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 21, 2025 · Backend Development

How to Dynamically Register and Unregister Spring Boot Controllers at Runtime

This article demonstrates how to programmatically register and unregister Spring Boot controller methods, covering simple examples, adding request constraints, custom matching conditions, and endpoint removal, with complete code snippets and a test result illustration.

Backend DevelopmentControllerDynamic Registration
0 likes · 6 min read
How to Dynamically Register and Unregister Spring Boot Controllers at Runtime
Top Architecture Tech Stack
Top Architecture Tech Stack
Apr 16, 2025 · Backend Development

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

This article explains how to refactor Spring MVC controllers by introducing a unified response wrapper, using ResponseBodyAdvice for automatic packaging, handling String conversion issues, applying JSR‑303 validation for request parameters, creating custom validators, and defining centralized exception handling to keep controller code clean and maintainable.

ControllerExceptionHandlingJava
0 likes · 17 min read
Improving Spring Controller Design: 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
Architects' Tech Alliance
Architects' Tech Alliance
Mar 11, 2025 · Fundamentals

Fundamentals of AI Chips: General Processor (CPU) – ALU, Registers, and Controller

This article introduces the basic structure of a general‑purpose CPU used in AI chips, describing the arithmetic‑logic unit (ALU), the different types of registers, and the controller, while also directing readers to extensive AI‑chip technical report collections for deeper study.

AI chipALUCPU
0 likes · 3 min read
Fundamentals of AI Chips: General Processor (CPU) – ALU, Registers, and Controller
Architect's Tech Stack
Architect's Tech Stack
Mar 10, 2025 · Backend Development

Improving Spring Boot Controllers: From Messy to Elegant with @Valid and Global Exception Handling

This article examines common pitfalls in Spring Boot controller implementations—such as excessive try‑catch blocks, inline validation, and business logic—then demonstrates cleaner alternatives using @Valid, validation annotations, and global exception handling to produce concise, maintainable controllers.

ControllerException HandlingJava
0 likes · 8 min read
Improving Spring Boot Controllers: From Messy to Elegant with @Valid and Global 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 HandlingJava
0 likes · 17 min read
Improving Spring MVC Controllers: Unified Response Structure, Validation, and Exception Handling
Architect
Architect
Jan 10, 2025 · Backend Development

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

The article presents a step‑by‑step guide to refactor Spring MVC controller code by unifying response formats, applying a global response wrapper, enforcing parameter validation with JSR‑303, and handling custom exceptions through a centralized advice, all illustrated with complete Java examples.

ControllerExceptionHandlingJava
0 likes · 18 min read
Refactoring Spring Controller Layer: Unified Response Structure, Validation, and Exception Handling
Architecture Digest
Architecture Digest
Dec 29, 2024 · Backend Development

Refactoring Spring MVC Controllers: Unified Return Structure, Response Advice, Parameter Validation, and Global Exception Handling

This article explains how to refactor the Spring MVC controller layer by introducing a unified response format, using ResponseBodyAdvice for automatic wrapping, fixing String conversion issues, applying JSR‑303 validation, creating custom validators, and handling exceptions globally to keep controller code clean and maintainable.

ControllerExceptionHandlingJava
0 likes · 18 min read
Refactoring Spring MVC Controllers: Unified Return Structure, Response Advice, Parameter Validation, and Global Exception Handling
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 25, 2024 · Backend Development

RocketMQ 5.0 Architecture: Proxy Layer, POP Consumption, and Controller Mode

This article explains the architectural changes introduced in RocketMQ 5.0, including the new stateless Proxy layer, the POP consumption model, message‑level load balancing, and the Controller mode for automatic master‑slave failover, providing detailed diagrams and resource links.

ControllerMessage QueueProxy
0 likes · 6 min read
RocketMQ 5.0 Architecture: Proxy Layer, POP Consumption, and Controller Mode
Architect's Guide
Architect's Guide
Nov 30, 2024 · Backend Development

Why Private Controller Methods Fail Dependency Injection When Using AOP in Spring Boot

This article explains why a private method in a Spring Boot @RestController cannot have its @Autowired service injected when an AOP aspect is present, demonstrates the issue with code examples, and clarifies the underlying proxy mechanism that causes the null‑pointer error.

AOPControllerJava
0 likes · 5 min read
Why Private Controller Methods Fail Dependency Injection When Using AOP in Spring Boot
Architect's Tech Stack
Architect's Tech Stack
Nov 27, 2024 · Backend Development

Refactoring Spring Boot Controllers: From Messy Code to Clean, Validated, and Exception‑Handled Design

This article examines common problems in Spring Boot controller implementations—excessive try‑catch blocks, inline validation, and business logic leakage—and demonstrates how to refactor them using @Valid, assertion utilities, and a global exception handler to achieve concise, maintainable backend code.

ControllerExceptionHandlingJava
0 likes · 9 min read
Refactoring Spring Boot Controllers: From Messy Code to Clean, Validated, and Exception‑Handled Design
php中文网 Courses
php中文网 Courses
Nov 18, 2024 · Backend Development

Using Controller Action Redirects in Laravel: Best Practices and Real‑World Examples

This article explains how to perform efficient and type‑safe user redirects in Laravel controllers using the action() method, covering basic redirects, parameterized redirects, and a complete real‑world example with error handling and flash messages.

ControllerLaravelPHP
0 likes · 2 min read
Using Controller Action Redirects in Laravel: Best Practices and Real‑World Examples
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 6, 2024 · Backend Development

Improving Spring Boot Controllers: From Messy to Elegant with @Valid and Global Exception Handling

The article examines common pitfalls in Spring Boot controller implementations—excessive try‑catch blocks, inline validation, and business logic—then demonstrates how to refactor them into clean, maintainable code using @Valid annotations, reduced duplication, and a centralized global exception handler.

ControllerExceptionHandlingSpringBoot
0 likes · 8 min read
Improving Spring Boot Controllers: From Messy to Elegant with @Valid and Global Exception Handling