Tagged articles

validation

278 articles · Page 2 of 3
Architect
Architect
Sep 20, 2024 · Backend Development

18 Essential API Design Rules Every Backend Engineer Should Follow

This article presents a comprehensive checklist of 18 practical API design rules—including signature, encryption, IP whitelisting, rate limiting, validation, unified responses, exception handling, logging, idempotency, pagination, stress testing, async processing, data masking, documentation, request methods, headers, batch operations, and single‑responsibility principles—to help developers build secure, maintainable, and high‑performance services.

API designDocumentationIdempotency
0 likes · 18 min read
18 Essential API Design Rules Every Backend Engineer Should Follow
Python Programming Learning Circle
Python Programming Learning Circle
Sep 14, 2024 · Fundamentals

10 Useful Python Decorators with Code Examples

This article introduces ten practical Python decorators—including @timer, @memoize, @validate_input, and others—explaining their purpose, providing detailed code implementations, and demonstrating how they can improve performance, error handling, logging, validation, and visualization in data‑science and general programming tasks.

decoratorserror handlinglogging
0 likes · 10 min read
10 Useful Python Decorators with Code Examples
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 20, 2024 · Backend Development

Master Advanced Spring Boot: Date Params, Conditional Controllers & Async Timeouts

Learn how to elegantly process Java 8 date parameters, register custom converters, conditionally enable controllers, apply unified API prefixes, perform service‑layer validation, and control asynchronous request timeouts in Spring Boot 3.2.5 using annotations, configuration files, and programmatic WebMvcConfigurer techniques.

AsyncControllerSpring Boot
0 likes · 7 min read
Master Advanced Spring Boot: Date Params, Conditional Controllers & Async Timeouts
php Courses
php Courses
Aug 19, 2024 · Backend Development

Using the #[Validate] Attribute in Livewire v3 for Simplified Form Validation

Livewire v3 introduces the #[Validate] attribute, enabling developers to define validation rules directly on component properties, which reduces boilerplate, improves readability, and offers advanced features such as custom messages, multiple rules, and conditional validation for PHP/Laravel applications.

LiveWireattributesbackend
0 likes · 5 min read
Using the #[Validate] Attribute in Livewire v3 for Simplified Form Validation
Programmer DD
Programmer DD
Aug 6, 2024 · Backend Development

Step‑by‑Step JSON Validation in Spring Boot Using JSON Schema

This guide explains how to integrate JSON Schema validation into a Spring Boot application, covering dependency setup, schema definition, bean configuration, service implementation, controller handling, and testing with curl examples to ensure JSON payloads conform to the defined rules.

JSON SchemaSpring Bootbackend
0 likes · 7 min read
Step‑by‑Step JSON Validation in Spring Boot Using JSON Schema
Architecture Digest
Architecture Digest
Aug 2, 2024 · Backend Development

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

The article demonstrates how to transform overly complex Spring Boot controllers—filled with repetitive validation and business logic—into clean, maintainable code by using @Valid annotations, concise validation rules, and a centralized exception handler, effectively halving the code size and improving readability.

ControllerSpringBootbackend
0 likes · 9 min read
From Messy to Elegant: Refactoring Spring Boot Controllers with @Valid and Global Exception Handling
Code Ape Tech Column
Code Ape Tech Column
Aug 2, 2024 · Backend Development

Improving Spring MVC Controllers: Unified Response Structure, Validation, and Exception Handling

This article explains how to refactor Spring MVC controller layers by introducing a unified response wrapper, handling String conversion issues with ResponseBodyAdvice, applying JSR‑303 validation for request parameters, creating custom validation annotations, and implementing custom exceptions with a global exception handler to produce clean, maintainable backend code.

ControllerExceptionHandlingResponseWrapper
0 likes · 21 min read
Improving Spring MVC Controllers: Unified Response Structure, Validation, and Exception Handling
Top Architect
Top Architect
Aug 1, 2024 · Backend Development

Best Practices for Designing a Robust Controller Layer in Spring Backend Applications

This article explains how to build a clean, maintainable Controller layer in Spring by separating responsibilities, unifying response structures, applying global response wrapping, leveraging JSR‑303 validation for parameters, creating custom validation rules, and handling exceptions uniformly, all illustrated with practical Java code examples.

ControllerExceptionHandlingSpring
0 likes · 18 min read
Best Practices for Designing a Robust Controller Layer in Spring Backend Applications
Test Development Learning Exchange
Test Development Learning Exchange
Jul 22, 2024 · Fundamentals

Common Python Utility Interfaces: Validation, HTTP, File I/O, JSON, DateTime, Encryption, SQLite, Image Processing, Error Handling, and Config Loading

This article presents a collection of reusable Python utility interfaces—including data validation, HTTP request handling, file read/write, JSON parsing, date‑time formatting, symmetric encryption, SQLite persistence, image resizing, exception handling, and configuration loading—each illustrated with concise code examples to improve code readability and testability.

encryptionfile-ioutilities
0 likes · 4 min read
Common Python Utility Interfaces: Validation, HTTP, File I/O, JSON, DateTime, Encryption, SQLite, Image Processing, Error Handling, and Config Loading
Architect's Guide
Architect's Guide
Jul 16, 2024 · Backend Development

Refactoring Spring Boot Controllers: From Messy to Elegant

The article critiques overly complex Spring Boot controllers filled with repetitive validation and business logic, demonstrates cleaner implementations using @Valid, Assert, and global exception handling, and provides practical code examples and guidelines for building maintainable backend controllers.

@ValidExceptionHandlingSpringBoot
0 likes · 10 min read
Refactoring Spring Boot Controllers: From Messy to Elegant
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 16, 2024 · Backend Development

Master Spring Boot Configuration: @ConfigurationProperties, @Value, AOP & Lazy Init

This tutorial walks through Spring Boot configuration techniques—including property classes, environment variable binding, validation, @Value usage, random ports, AOP proxy settings, lazy initialization, and handling circular dependencies—providing practical code examples for each feature.

ConfigurationPropertiesLazy InitializationSpring Boot
0 likes · 8 min read
Master Spring Boot Configuration: @ConfigurationProperties, @Value, AOP & Lazy Init
Top Architect
Top Architect
Jul 6, 2024 · Backend Development

Improving Controller Layer Logic, Unified Response Structure, and Parameter Validation in Spring Boot

This article explains how to design a clean Controller layer in Spring Boot, introduces a unified response format with Result and ResponseBodyAdvice, demonstrates parameter validation using JSR‑303 and Spring Validation, and shows custom validation annotations and global exception handling to keep controller code concise and maintainable.

ControllerException HandlingResponseBodyAdvice
0 likes · 18 min read
Improving Controller Layer Logic, Unified Response Structure, and Parameter Validation in Spring Boot
Java Architect Essentials
Java Architect Essentials
Jul 3, 2024 · Backend Development

From Messy to Elegant Spring Boot Controllers: Validation, Refactoring, and Global Exception Handling

This article demonstrates how to transform overly complex Spring Boot controllers—filled with repetitive try‑catch blocks and manual field checks—into clean, maintainable code by applying @Valid validation, reducing boilerplate, and implementing a centralized exception‑handling strategy.

ControllerException HandlingSpring Boot
0 likes · 9 min read
From Messy to Elegant Spring Boot Controllers: Validation, Refactoring, and Global Exception Handling
Java Architect Essentials
Java Architect Essentials
Jun 10, 2024 · Backend Development

Designing an Excellent Controller Layer in Java Spring

This article explains how to build a clean, maintainable Controller layer in Java Spring by separating responsibilities, using unified response structures, applying ResponseBodyAdvice for automatic wrapping, implementing parameter validation with JSR‑303, and handling custom exceptions through centralized advice, illustrated with comprehensive code examples.

ControllerExceptionHandlingResponseBodyAdvice
0 likes · 15 min read
Designing an Excellent Controller Layer in Java Spring
macrozheng
macrozheng
May 30, 2024 · Backend Development

18 Essential API Design Rules Every Backend Developer Should Follow

Learn 18 essential API design rules covering signature, encryption, IP whitelisting, rate limiting, parameter validation, unified responses, exception handling, logging, idempotency, pagination, stress testing, async processing, data masking, documentation, request methods, headers, batch operations, and single‑responsibility principles for robust backend services.

API designrate limitingsecurity
0 likes · 17 min read
18 Essential API Design Rules Every Backend Developer Should Follow
Java High-Performance Architecture
Java High-Performance Architecture
May 30, 2024 · Backend Development

How to Build a Clean, Robust Java Controller Layer with Unified Responses and Validation

This article explains how to design an effective Java controller layer by separating concerns, introducing a unified response structure, applying global response wrapping, leveraging Spring's validation mechanisms, and handling custom exceptions to produce concise, maintainable backend code.

ControllerException HandlingSpring
0 likes · 18 min read
How to Build a Clean, Robust Java Controller Layer with Unified Responses and Validation
Test Development Learning Exchange
Test Development Learning Exchange
May 28, 2024 · Fundamentals

Using Regular Expressions for API Automation Testing: 10 Practical Examples

This article demonstrates how regular expressions can be applied in API automation testing through ten practical Python examples that extract URLs, validate emails, parse JSON, match phone numbers, detect sensitive words, retrieve HTTP status codes, verify dates, parse query parameters, enforce password strength, and extract XML tag content.

data extractionvalidation
0 likes · 6 min read
Using Regular Expressions for API Automation Testing: 10 Practical Examples
Java Architect Essentials
Java Architect Essentials
May 20, 2024 · Backend Development

Standardizing Spring Boot Controller Layer: Parameter Reception, Unified Status Codes, Validation, Response Wrapping, and Exception Handling

This article provides a comprehensive guide to standardizing the Spring Boot controller layer by explaining how to receive parameters, define unified status codes, apply validation annotations, wrap responses consistently, and handle exceptions globally, all illustrated with practical Java code examples.

ControllerException HandlingSpring Boot
0 likes · 19 min read
Standardizing Spring Boot Controller Layer: Parameter Reception, Unified Status Codes, Validation, Response Wrapping, and Exception Handling
21CTO
21CTO
Apr 17, 2024 · Fundamentals

Build Your Own DSL in Six Steps with Langium

This guide walks you through creating a domain‑specific language using Langium, covering lexical analysis, parsing, linking, semantic validation, developer experience enhancements, and deployment options, all illustrated with concrete ZModel examples and code snippets.

CompilerLangiumTypeScript
0 likes · 11 min read
Build Your Own DSL in Six Steps with Langium
Selected Java Interview Questions
Selected Java Interview Questions
Apr 9, 2024 · Backend Development

Applying the Chain of Responsibility Pattern for Multi‑Level Product Validation and Workflow in Java

This article explains the Chain of Responsibility design pattern, demonstrates its use for multi‑step product validation and a reimbursement workflow in Java with Spring, provides UML diagrams, configuration handling, concrete handler implementations, client execution code, and discusses the pattern’s advantages and drawbacks.

Chain of ResponsibilityDesign PatternSpring
0 likes · 18 min read
Applying the Chain of Responsibility Pattern for Multi‑Level Product Validation and Workflow in Java
php Courses
php Courses
Mar 19, 2024 · Backend Development

Using PHP mb_strlen() to Measure Multibyte String Length

This article explains how to use PHP's mb_strlen() function from the mbstring extension to accurately measure the length of multibyte strings, covering installation, syntax, optional encoding parameters, practical examples in Chinese and Japanese, and how to validate string length limits.

PHPmbstringmultibyte
0 likes · 5 min read
Using PHP mb_strlen() to Measure Multibyte String Length
Java Tech Enthusiast
Java Tech Enthusiast
Mar 10, 2024 · Backend Development

Comprehensive Guide to Spring Validation in Spring Boot

This guide explains how to configure and use Spring Validation (JSR‑303) in Spring Boot, covering dependency setup, @Valid vs @Validated, request body and parameter validation, group, nested and collection checks, custom constraints, programmatic validation, fail‑fast mode, and underlying implementation details.

APIHibernateValidatorSpring
0 likes · 16 min read
Comprehensive Guide to Spring Validation in Spring Boot
Python Programming Learning Circle
Python Programming Learning Circle
Feb 17, 2024 · Fundamentals

Common Python Decorators: Usage, Examples, and Implementation

This article introduces Python decorators, explains their syntax, and provides ten practical examples—including timing, caching, input validation, logging, error suppression, output validation, retry logic, visualization, debugging, and deprecation—complete with code snippets and usage guidance for data‑science and general development tasks.

cachingdecoratorserror handling
0 likes · 9 min read
Common Python Decorators: Usage, Examples, and Implementation
Code Ape Tech Column
Code Ape Tech Column
Feb 6, 2024 · Backend Development

Comprehensive Guide to Spring Validation: Best Practices and Implementation Principles

This article provides an in‑depth tutorial on Spring Validation, covering simple usage, requestBody and requestParam/PathVariable validation, unified exception handling, advanced techniques such as group, nested, collection and custom validation, programmatic validation, fail‑fast mode, and the underlying implementation mechanisms within Spring MVC and Hibernate Validator.

Hibernate ValidatorSpringSpring Boot
0 likes · 17 min read
Comprehensive Guide to Spring Validation: Best Practices and Implementation Principles
Architecture Digest
Architecture Digest
Feb 1, 2024 · Backend Development

Best Practices for Designing the Controller Layer in Spring Boot: Unified Response, Validation, and Exception Handling

This article explains how to build a clean and maintainable Spring Boot controller layer by separating responsibilities, unifying response structures, applying comprehensive parameter validation (including custom rules), and implementing centralized exception handling to keep business logic concise and robust.

ControllerException HandlingSpring Boot
0 likes · 18 min read
Best Practices for Designing the Controller Layer in Spring Boot: Unified Response, Validation, and Exception Handling
Java Backend Technology
Java Backend Technology
Jan 15, 2024 · Fundamentals

Why Every Web App Needs Front‑End and Back‑End Data Validation

This article explains why both front‑end and back‑end data validation are essential in modern web applications, outlines the specific checks each layer should perform—from required fields and format rules to security safeguards like XSS/CSRF protection—and highlights the combined benefits for user experience, server load, and overall system integrity.

Frontendbackendsecurity
0 likes · 9 min read
Why Every Web App Needs Front‑End and Back‑End Data Validation
macrozheng
macrozheng
Dec 28, 2023 · Backend Development

Master Spring Boot Validation: 10 Essential Tips & Custom Annotations

This article explains ten practical techniques for implementing robust parameter validation in Spring Boot applications, covering built‑in annotations, custom constraints, server‑side checks, internationalization, validation groups, cross‑field rules, exception handling, testing, and the importance of complementary client‑side validation.

Spring Bootannotationsjava
0 likes · 17 min read
Master Spring Boot Validation: 10 Essential Tips & Custom Annotations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 18, 2023 · Backend Development

Handling Interface Parameters in Spring Boot: Retrieval, Types, Validation, and File Upload

This article explains how to retrieve and handle various Spring Boot API parameters—including query, path, request body, header, and file uploads—covers parameter type handling such as dates and lists, demonstrates validation annotations, and provides complete code examples for each scenario.

API parametersSpring Bootbackend development
0 likes · 11 min read
Handling Interface Parameters in Spring Boot: Retrieval, Types, Validation, and File Upload
Open Source Tech Hub
Open Source Tech Hub
Dec 9, 2023 · Backend Development

Build Real‑Time Group & Private Chat with WebSocket and PHP Validation

This guide explains how to design group and private chat messages, define a unified JSON protocol, validate payloads with a custom validator, and implement WebSocket callbacks (onWorkerStart, onWebSocketConnect, onMessage, onClose) using PHP and JavaScript client examples for both one‑to‑one and group conversations.

PHPReal-time Chatbackend
0 likes · 11 min read
Build Real‑Time Group & Private Chat with WebSocket and PHP Validation
php Courses
php Courses
Nov 27, 2023 · Backend Development

Handling HTML Form Submissions with PHP: Validation and Processing

This article explains how to create an HTML login form, submit it via POST to a PHP script, and use PHP functions like isset() and the $_POST array to validate the username and password, outputting appropriate success or error messages.

Form HandlingPHPWeb Development
0 likes · 4 min read
Handling HTML Form Submissions with PHP: Validation and Processing
php Courses
php Courses
Nov 23, 2023 · Backend Development

PHP Form Handling: Creating and Processing a Login Form

This article demonstrates how to build an HTML login form and use PHP functions like isset() and $_POST to validate, process, and securely handle submitted username and password data on the server side.

Form HandlingPHPWeb Development
0 likes · 4 min read
PHP Form Handling: Creating and Processing a Login Form
政采云技术
政采云技术
Nov 22, 2023 · Backend Development

Comprehensive Guide to Spring Validation: Annotations, Usage Scenarios, and Advanced Techniques

This article provides an in‑depth overview of Spring Validation, covering standard Bean Validation 2.0 annotations, Hibernate extensions, the differences between @Valid and @Validated, practical usage in controllers, programmatic validation, Dubbo integration, group validation, and how to create custom validation annotations with full code examples.

AnnotationBean ValidationDubbo
0 likes · 16 min read
Comprehensive Guide to Spring Validation: Annotations, Usage Scenarios, and Advanced Techniques
php Courses
php Courses
Nov 20, 2023 · Backend Development

PHP Form Handling: Creating and Processing a Login Form

This article explains how to build a login form in HTML and process its data securely with PHP, covering form structure, POST submission, data validation using isset() and $_POST, and handling success or error messages.

Form HandlingPHPWeb Development
0 likes · 4 min read
PHP Form Handling: Creating and Processing a Login Form
Architecture Digest
Architecture Digest
Nov 17, 2023 · Backend Development

Best Practices for Designing an Excellent Controller Layer in Spring MVC

This article explains how to design a clean, maintainable Spring MVC controller layer by unifying response structures, applying centralized exception handling, and leveraging JSR‑303 validation with custom rules, illustrated with comprehensive code examples and best‑practice guidelines.

ControllerResponseBodyAdvicebackend development
0 likes · 18 min read
Best Practices for Designing an Excellent Controller Layer in Spring MVC
DeWu Technology
DeWu Technology
Oct 18, 2023 · Backend Development

Understanding Bean Validation and Spring Validation in Java Applications

Bean Validation (JSR‑303/380) offers a standard, annotation‑driven API—implemented by Hibernate Validator—for declaring constraints such as @NotNull or @Email, while Spring integrates it via @Valid and @Validated (with group support and AOP‑based method validation), enabling automatic request‑body checks, custom constraints, and service‑layer validation, provided the proper annotations are applied.

Bean ValidationJSR-303Spring
0 likes · 15 min read
Understanding Bean Validation and Spring Validation in Java Applications
Java Architect Essentials
Java Architect Essentials
Oct 2, 2023 · Backend Development

Standardizing the Controller Layer: Parameter Validation, Unified Response, and Exception Handling in Spring Boot

This article explains how to structure a Spring Boot controller by describing the four parts of a request, demonstrating elegant parameter validation, implementing a unified response wrapper with status codes, and handling both validation and business exceptions through centralized advice and custom exception classes.

ControllerException HandlingSpring Boot
0 likes · 22 min read
Standardizing the Controller Layer: Parameter Validation, Unified Response, and Exception Handling in Spring Boot
IT Services Circle
IT Services Circle
Sep 25, 2023 · Frontend Development

Understanding and Using Regular Expressions in JavaScript

This article provides a comprehensive, beginner‑friendly guide to JavaScript regular expressions, covering core concepts, syntax, creation methods, modifiers, character classes, quantifiers, special characters, capture groups, look‑ahead/look‑behind assertions, common string methods, practical use cases such as validation, search‑replace, data extraction, cleaning, and a list of useful online regex tools.

JavaScriptString Manipulationregular expressions
0 likes · 27 min read
Understanding and Using Regular Expressions in JavaScript
Python Programming Learning Circle
Python Programming Learning Circle
Sep 2, 2023 · Fundamentals

Python Decorators: Ten Practical Custom Decorators with Code Examples

This article explains Python decorators, a powerful feature for modifying functions or classes, and provides ten practical custom decorators—including @timer, @memoize, @validate_input, @log_results, @suppress_errors, @validate_output, @retry, @visualize_results, @debug, and @deprecated—each with clear explanations and complete code samples.

Pythoncachingdecorators
0 likes · 9 min read
Python Decorators: Ten Practical Custom Decorators with Code Examples
Java High-Performance Architecture
Java High-Performance Architecture
Aug 30, 2023 · Backend Development

How to Unify Controller Parameters, Responses, Validation, and Exceptions in Spring Boot

This article explains how to standardize Spring Boot controller handling by receiving parameters, defining unified status codes, applying global validation, wrapping responses consistently, and managing exceptions with custom advice, using annotations, enums, and AOP techniques to improve code readability and front‑end integration.

ControllerException HandlingSpring Boot
0 likes · 20 min read
How to Unify Controller Parameters, Responses, Validation, and Exceptions in Spring Boot
Top Architect
Top Architect
Aug 15, 2023 · Backend Development

Elegant Parameter Validation in Spring Using @Validated and Custom Annotations

This article explains how to replace repetitive if‑statements with Spring's @Validated and @Valid annotations, shows how to import validation dependencies, demonstrates creating custom validation annotations and constraint validators, and provides a comprehensive list of built‑in javax.validation constraints for clean and maintainable backend code.

CustomValidatorannotationsjava
0 likes · 11 min read
Elegant Parameter Validation in Spring Using @Validated and Custom Annotations
JD.com Experience Design Center
JD.com Experience Design Center
Aug 11, 2023 · Product Management

How to Build Data‑Driven Personas: A Step‑by‑Step Guide

This article explains how to create, segment, validate, and document qualitative user personas using systematic variable collection, manual clustering, questionnaire verification, and detailed persona templates to ensure actionable insights for product development.

Segmentationproduct researchqualitative analysis
0 likes · 11 min read
How to Build Data‑Driven Personas: A Step‑by‑Step Guide
Java Interview Crash Guide
Java Interview Crash Guide
Aug 11, 2023 · Backend Development

How to Refactor Spring Controllers for Unified Responses and Validation

This article explains how to redesign Spring MVC controllers by introducing a unified response structure, leveraging ResponseBodyAdvice for automatic wrapping, handling String conversion issues, applying JSR‑303 validation, creating custom validators, and centralizing exception handling to produce cleaner, more maintainable backend code.

ResponseBodyAdvicebackendjava
0 likes · 20 min read
How to Refactor Spring Controllers for Unified Responses and Validation
Top Architect
Top Architect
Aug 10, 2023 · Backend Development

Optimizing Controller Layer Logic in Spring MVC: Best Practices and Refactoring

This article explains the responsibilities of the MVC controller layer, shows a typical Spring Boot controller implementation, and then demonstrates a series of refactorings—including delegating to the service layer, using validation annotations, standardizing response objects, and centralizing exception handling—to produce cleaner, more maintainable backend code.

ControllerException Handlingjava
0 likes · 12 min read
Optimizing Controller Layer Logic in Spring MVC: Best Practices and Refactoring
php Courses
php Courses
Jul 28, 2023 · Backend Development

Developing Stable and Reliable API Interfaces with ThinkPHP6

This tutorial explains how to design request/response structures, configure routing, implement controllers, perform parameter validation, and handle exceptions when building robust API endpoints using the ThinkPHP6 framework, complete with practical code examples.

APIException HandlingPHP
0 likes · 6 min read
Developing Stable and Reliable API Interfaces with ThinkPHP6
Architect's Tech Stack
Architect's Tech Stack
Jul 22, 2023 · Backend Development

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

This article explains how to refactor a Spring MVC Controller layer by introducing a unified response format, leveraging ResponseBodyAdvice for automatic wrapping, applying JSR‑303 validation for request parameters, and centralizing exception handling to produce clean, maintainable backend code.

ControllerExceptionHandlingResponseBodyAdvice
0 likes · 17 min read
Improving Spring MVC Controller Layer: Unified Response Structure, Validation, and Exception Handling
Top Architect
Top Architect
May 23, 2023 · Backend Development

Understanding @NotNull, @NotBlank, @NotEmpty and the Difference Between @Valid and @Validated in Spring Boot

This article explains how to import validation dependencies in Spring Boot, compares the semantics of @NotNull, @NotBlank, and @NotEmpty annotations, demonstrates their usage with code examples, and clarifies the behavioral differences between @Valid and @Validated when validating controller inputs.

@Valid@ValidatedNotBlank
0 likes · 7 min read
Understanding @NotNull, @NotBlank, @NotEmpty and the Difference Between @Valid and @Validated in Spring Boot
Java Architect Essentials
Java Architect Essentials
May 14, 2023 · Backend Development

Comprehensive Guide to Spring Boot Backend API Design: Validation, Global Exception Handling, Unified Response, Version Control, and Security

This article presents a step‑by‑step tutorial on building robust Spring Boot backend APIs, covering environment setup, parameter validation techniques, global exception handling, unified response structures, optional response wrapping, API versioning via path or header, and comprehensive security measures such as token authentication, timestamp checks, request signing, replay protection, and HTTPS.

APIException HandlingSpring Boot
0 likes · 26 min read
Comprehensive Guide to Spring Boot Backend API Design: Validation, Global Exception Handling, Unified Response, Version Control, and Security
Code Ape Tech Column
Code Ape Tech Column
May 1, 2023 · Backend Development

Comprehensive Guide to Backend API Development with Spring Boot: Validation, Global Exception Handling, Unified Responses, Versioning, and Security

This article provides a detailed tutorial on building robust Spring Boot backend APIs, covering interface structure, environment setup, parameter validation methods, custom validators, global exception handling, unified response formats, optional response wrapping, API version control, and security measures such as token authentication and request signing.

Backend APIException HandlingSpring Boot
0 likes · 27 min read
Comprehensive Guide to Backend API Development with Spring Boot: Validation, Global Exception Handling, Unified Responses, Versioning, and Security
macrozheng
macrozheng
Apr 25, 2023 · Backend Development

Refactor Spring Controllers for Unified Responses and Robust Validation

This article explains why traditional Spring MVC Controllers become cumbersome, demonstrates how to unify response structures with a Result wrapper, leverages ResponseBodyAdvice for automatic packaging, resolves String conversion issues, and shows best‑practice parameter validation using JSR‑303, custom validators, and global exception handling to keep controller code clean and maintainable.

ControllerResponseBodyAdviceSpring
0 likes · 20 min read
Refactor Spring Controllers for Unified Responses and Robust Validation
IT Xianyu
IT Xianyu
Apr 24, 2023 · Backend Development

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

This article explains how to refactor a Spring MVC Controller by introducing a unified response wrapper, leveraging ResponseBodyAdvice for automatic packaging, applying JSR‑303 validation for @RequestBody, @PathVariable and @RequestParam parameters, creating custom validation annotations, and handling business and system exceptions consistently.

ControllerException HandlingSpring
0 likes · 15 min read
Improving Spring Controller Layer: Unified Response Structure, Validation, and Exception Handling
Java Architect Essentials
Java Architect Essentials
Apr 23, 2023 · Backend Development

Comprehensive Guide to Spring Validation: Simple to Advanced Usage and Implementation Principles

This article provides a detailed tutorial on Spring Validation, covering basic dependency setup, requestBody and requestParam/PathVariable validation, advanced techniques such as group, nested, collection and custom validation, programmatic validation, fail‑fast mode, the difference between @Valid and @Validated, and the underlying implementation mechanisms within Spring MVC.

APIHibernate ValidatorSpring
0 likes · 18 min read
Comprehensive Guide to Spring Validation: Simple to Advanced Usage and Implementation Principles
Selected Java Interview Questions
Selected Java Interview Questions
Apr 14, 2023 · Backend Development

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

This article explains how to refactor a Spring MVC Controller layer by defining its responsibilities, introducing a unified response format, using ResponseBodyAdvice for automatic wrapping, applying JSR‑303 validation for request parameters, and implementing custom exceptions with centralized handling to achieve cleaner, more maintainable backend code.

ControllerExceptionHandlingResponseBodyAdvice
0 likes · 17 min read
Improving Spring Controller Layer: Unified Response Structure, Validation, and Exception Handling
Java Captain
Java Captain
Apr 11, 2023 · Backend Development

Improving Java Backend Code: Bean Conversion, DTO Handling, Lombok, Validation, and Refactoring Practices

This article provides comprehensive guidance on Java backend development, covering IDE selection, bean and DTO conversion techniques, validation with JSR‑303, extensive Lombok usage, builder patterns, proxy design, refactoring strategies, and the balance between business‑driven and technology‑driven development.

DTODesign PatternsLombok
0 likes · 25 min read
Improving Java Backend Code: Bean Conversion, DTO Handling, Lombok, Validation, and Refactoring Practices
Selected Java Interview Questions
Selected Java Interview Questions
Jan 28, 2023 · Backend Development

Standardizing Controller Parameter Handling, Response Wrapping, Validation, and Exception Management in Spring Boot

This article explains how to structure Spring Boot controller layers by receiving request parameters, unifying status codes and response formats, applying @Validated for automatic input validation, using @RestControllerAdvice for centralized exception handling, and optionally disabling wrapping with a custom annotation, providing complete code examples for each step.

ControllerSpring Bootjava
0 likes · 21 min read
Standardizing Controller Parameter Handling, Response Wrapping, Validation, and Exception Management in Spring Boot
Watermelon Frontend Tech Team
Watermelon Frontend Tech Team
Dec 29, 2022 · Frontend Development

Why Runtime Type Checking Matters in TypeScript and How to Implement It

The article explains the difference between compile‑time and runtime type checking, why runtime checks are essential for data‑exchange scenarios in TypeScript projects, and compares several practical solutions—including JSON schemas, API‑based libraries like Zod, class‑validator, TypeScript‑JSON‑Schema, TypeScript‑is, and DeepKit—highlighting their advantages, drawbacks, and implementation details.

JSON SchemaTypeScriptZod
0 likes · 16 min read
Why Runtime Type Checking Matters in TypeScript and How to Implement It
Programmer DD
Programmer DD
Dec 23, 2022 · Fundamentals

Master the Chain of Responsibility Pattern in Java for Real-World Validation

This article explains the Chain of Responsibility design pattern, demonstrates its implementation with Spring‑managed handlers for product creation validation and expense‑approval workflows, shows how to configure and dynamically compose handlers via JSON, and provides complete Java code examples and diagrams.

Configurationjavavalidation
0 likes · 21 min read
Master the Chain of Responsibility Pattern in Java for Real-World Validation
Top Architect
Top Architect
Dec 21, 2022 · Backend Development

Refactoring the Spring Boot Controller Layer for Clean Architecture and Unified Responses

This article explains why the Controller layer should stay thin, identifies common pitfalls such as tangled validation and inconsistent responses, and demonstrates how to introduce a unified result wrapper, global response advice, robust parameter validation, custom validators, and centralized exception handling to produce concise, maintainable backend code.

ControllerException HandlingResponseBodyAdvice
0 likes · 17 min read
Refactoring the Spring Boot Controller Layer for Clean Architecture and Unified Responses
Top Architect
Top Architect
Dec 13, 2022 · Backend Development

Implementing Request/Response Encryption and Decryption with a Spring Boot Starter

This article explains how to create a reusable Spring Boot starter that automatically encrypts outgoing responses and decrypts incoming requests using AES, provides a request‑wrapper to allow multiple reads of the input stream, and integrates Spring Validation to simplify parameter checking, all illustrated with complete Java code examples.

Request WrapperSpring Bootencryption
0 likes · 25 min read
Implementing Request/Response Encryption and Decryption with a Spring Boot Starter
Su San Talks Tech
Su San Talks Tech
Nov 24, 2022 · Backend Development

Master Spring Validation: From Basic to Advanced Parameter Checks

This article explains how to use Spring Validation for automatic request parameter checks in Java web applications, covering basic setup, DTO annotations, requestBody and requestParam validation, unified exception handling, and advanced features like group, nested, collection, custom, and fail‑fast validation.

Hibernate ValidatorSpringbackend
0 likes · 18 min read
Master Spring Validation: From Basic to Advanced Parameter Checks
Top Architect
Top Architect
Nov 23, 2022 · Backend Development

Chain of Responsibility Pattern in Java: Design, Implementation, and Practical Example

This article explains the Chain of Responsibility design pattern, demonstrates its use for request validation and processing in Java backend applications, provides complete code examples—including abstract handler, concrete validators, business logic, and a test harness—while discussing its advantages, drawbacks, and real‑world analogues such as servlet filters.

Chain of ResponsibilityDesign Patternfilter
0 likes · 11 min read
Chain of Responsibility Pattern in Java: Design, Implementation, and Practical Example
Java Captain
Java Captain
Nov 23, 2022 · Backend Development

Best Practices for Designing an Excellent Controller Layer in Spring MVC

The article presents comprehensive best‑practice guidelines for building a clean, maintainable Controller layer in Spring MVC, covering its essential responsibilities, common pitfalls, unified response structures, parameter validation with JSR‑303, custom validators, and centralized exception handling to improve code simplicity and robustness.

ControllerExceptionHandlingSpring
0 likes · 19 min read
Best Practices for Designing an Excellent Controller Layer in Spring MVC
Top Architect
Top Architect
Nov 20, 2022 · Backend Development

Comprehensive Guide to Spring Validation: Parameter Checks, Groups, Nested Objects, Collections, Custom Constraints, and Implementation Details

This article provides a thorough tutorial on using Spring Validation for request parameter checking, covering simple usage, dependency setup, requestBody and requestParam validation, group and nested validation, collection handling, custom constraints, programmatic validation, fail‑fast mode, and the underlying implementation in Spring MVC and Hibernate Validator.

Hibernate ValidatorSpring Bootjava
0 likes · 17 min read
Comprehensive Guide to Spring Validation: Parameter Checks, Groups, Nested Objects, Collections, Custom Constraints, and Implementation Details
Code Ape Tech Column
Code Ape Tech Column
Nov 10, 2022 · Backend Development

Designing an Excellent Controller Layer in Spring MVC

This article explains how to improve the Controller layer in Spring applications by separating responsibilities, implementing unified response structures with Result wrappers, handling String response issues via ResponseBodyAdvice, applying parameter validation with JSR‑303, customizing validators, and centralizing exception handling for cleaner, more maintainable backend code.

ControllerExceptionHandlingResponseBodyAdvice
0 likes · 18 min read
Designing an Excellent Controller Layer in Spring MVC
Selected Java Interview Questions
Selected Java Interview Questions
Nov 7, 2022 · Backend Development

Comprehensive Guide to Spring Validation: RequestBody, RequestParam, and Advanced Techniques

This article provides a detailed tutorial on using Spring Validation in Spring Boot applications, covering simple and advanced usage such as requestBody and requestParam parameter checks, group validation, nested and collection validation, custom constraints, programmatic validation, fail‑fast mode, and the underlying implementation mechanisms.

Hibernate ValidatorSpringSpring Boot
0 likes · 16 min read
Comprehensive Guide to Spring Validation: RequestBody, RequestParam, and Advanced Techniques
Top Architect
Top Architect
Nov 7, 2022 · Backend Development

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

This article explains how to refactor Spring MVC Controller code by introducing a unified response format, handling String and JSON return types with ResponseBodyAdvice, applying parameter validation using JSR‑303, and implementing custom exceptions with centralized exception handling to simplify business logic and improve code maintainability.

ControllerExceptionHandlingResponseBodyAdvice
0 likes · 20 min read
Improving Spring Controller Layer: Unified Response Structure, Validation, and Exception Handling
Laravel Tech Community
Laravel Tech Community
Oct 26, 2022 · Backend Development

PHP 8.3 RFC: Built‑in json_validate Function

The article explains the PHP 8.3 RFC that introduces a built‑in json_validate function, describing its signature, parameters, return values, usage examples, community discussion, reasons for inclusion, and the impact on major PHP projects, while noting its compatibility with the existing json_decode parser.

PHPjsonjson_validate
0 likes · 7 min read
PHP 8.3 RFC: Built‑in json_validate Function
Architect's Tech Stack
Architect's Tech Stack
Oct 26, 2022 · Backend Development

Using EasyExcel Spring Boot Starter for Excel Import, Export and Validation

This article introduces the EasyExcel‑Spring‑Boot‑Starter project, explains the limitations of POI and EasyExcel, shows how to integrate it into a Spring Boot application with Maven dependencies, demonstrates Excel import and export APIs, and provides comprehensive validation and error‑handling mechanisms for robust backend development.

EasyExcelExcel exportExcel import
0 likes · 10 min read
Using EasyExcel Spring Boot Starter for Excel Import, Export and Validation
Liangxu Linux
Liangxu Linux
Sep 25, 2022 · Fundamentals

Essential Regular Expressions for Common Data Validation

A comprehensive collection of regular expressions for validating numbers, characters, emails, URLs, phone numbers, dates, IP addresses, and other common data formats, presented with clear descriptions and ready-to-use patterns for developers.

Pattern MatchingRegexdata validation
0 likes · 16 min read
Essential Regular Expressions for Common Data Validation
Top Architect
Top Architect
Sep 11, 2022 · Backend Development

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

This article explains how to design a clean Controller layer in Spring MVC by implementing unified response structures, handling String response issues with ResponseBodyAdvice, applying parameter validation with JSR‑303, and creating custom exceptions with centralized exception handling to simplify business logic.

ControllerException HandlingResponseBodyAdvice
0 likes · 19 min read
Improving Controller Layer Logic: Unified Response Wrapping, Validation, and Exception Handling in Spring MVC
IT Architects Alliance
IT Architects Alliance
Sep 7, 2022 · Backend Development

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

This article explains how to refactor Spring MVC controller code by introducing a unified response structure, handling String response issues with ResponseBodyAdvice, applying JSR‑303 validation, creating custom validation annotations, and implementing custom exceptions with global exception handling to produce cleaner, more maintainable backend services.

ControllerExceptionHandlingSpring
0 likes · 18 min read
Improving Spring MVC Controller Logic: Unified Response, Validation, and Exception Handling
Top Architect
Top Architect
Aug 28, 2022 · Backend Development

Spring Boot Parameter Validation with javax.validation and Custom Annotations

This tutorial demonstrates how to replace verbose manual checks in Java services with Spring's javax.validation annotation‑based validation, covering built‑in constraints, Maven setup, DTO annotations, validation groups, custom validators, and a global exception handler for unified error responses.

ExceptionHandlingSpringannotations
0 likes · 13 min read
Spring Boot Parameter Validation with javax.validation and Custom Annotations
360 Quality & Efficiency
360 Quality & Efficiency
Aug 26, 2022 · Frontend Development

Using form-create to Dynamically Generate Forms in Vue

This article explains how to use the form-create library to dynamically build, render, and validate JSON‑driven forms in Vue, covering the definition of form items, component rendering with conditional logic, and handling of data binding and validation rules.

Dynamic FormsVueform-create
0 likes · 6 min read
Using form-create to Dynamically Generate Forms in Vue
Programmer DD
Programmer DD
Aug 18, 2022 · Backend Development

How to Build a Clean, Robust Spring Controller Layer with Unified Responses and Validation

This article explains why the Controller layer is essential, identifies common pitfalls such as tangled validation and inconsistent responses, and demonstrates how to refactor Spring MVC controllers using a unified Result wrapper, ResponseBodyAdvice, proper String handling, JSR‑303 validation, custom validators, and global exception handling to produce clean, maintainable backend code.

ControllerResponseBodyAdviceSpring
0 likes · 21 min read
How to Build a Clean, Robust Spring Controller Layer with Unified Responses and Validation
Java High-Performance Architecture
Java High-Performance Architecture
Aug 14, 2022 · Backend Development

Master Unified Responses, Validation, and Exception Handling in Spring Boot Controllers

This article explains how to structure Spring Boot controller requests, apply elegant parameter validation, wrap responses with a consistent ResultVo format, handle validation and business exceptions uniformly using @RestControllerAdvice, and selectively disable wrapping for specific endpoints, providing a complete backend development guide.

ControllerException HandlingSpring Boot
0 likes · 21 min read
Master Unified Responses, Validation, and Exception Handling in Spring Boot Controllers
ITPUB
ITPUB
Jul 17, 2022 · Backend Development

36 Essential Tips for Designing Robust Backend APIs

This comprehensive guide presents 36 practical recommendations for backend engineers, covering parameter validation, compatibility, extensibility, idempotency, error handling, logging, performance optimization, caching, rate limiting, security, transaction management, and clear communication to help design reliable, maintainable, and scalable service interfaces.

API designbackendscalability
0 likes · 27 min read
36 Essential Tips for Designing Robust Backend APIs
Top Architect
Top Architect
Jul 2, 2022 · Backend Development

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

This article explains how to structure Spring Boot controller methods to receive parameters, implement unified status codes, validation with @Validated, and automatic response wrapping using ResultVo and @RestControllerAdvice, while also providing custom exception handling and optional exclusion annotations for flexible API design.

ControllerException HandlingREST API
0 likes · 19 min read
Unified Parameter Handling, Validation, and Response Wrapping in Spring Boot Controllers
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.

ControllerExceptionHandlingResponseWrapper
0 likes · 18 min read
Unified Parameter Validation, Response Wrapping, and Exception Handling in Spring Boot Controllers
Python Programming Learning Circle
Python Programming Learning Circle
May 27, 2022 · Fundamentals

Nine Useful JSON Validation and Formatting Tools

This article introduces nine popular tools—including JSONLint, JSONCompare, JTC, ijson, and others—that help developers validate, format, compress, compare, and edit JSON data, providing both online services and IDE plugins for more efficient JSON handling.

Data ProcessingFormattingIDE plugins
0 likes · 5 min read
Nine Useful JSON Validation and Formatting Tools
Efficient Ops
Efficient Ops
May 25, 2022 · Fundamentals

Mastering Common Regex Patterns for Data Validation

This article provides a comprehensive collection of regular expression patterns for validating numbers, characters, emails, URLs, IP addresses, dates, and other common input formats, offering developers ready-to-use solutions for robust data validation in applications.

Input ValidationRegexdata validation
0 likes · 15 min read
Mastering Common Regex Patterns for Data Validation