Topic

Validation

Collection size
163 articles
Page 4 of 9
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 19, 2024 · Backend Development

Mastering Spring DataBinder: Real‑World Binding, Validation & Error Handling

This tutorial explains how Spring's DataBinder binds request parameters to objects, demonstrates practical code examples for successful and erroneous bindings, shows how to add custom validation, set required fields, and customize error codes for clearer user feedback.

BindingResultDataBinderSpring Boot
0 likes · 8 min read
Mastering Spring DataBinder: Real‑World Binding, Validation & Error Handling
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 17, 2024 · Backend Development

5 Must‑Know Spring Boot 3.2.5 Features You Can Start Using Today

This article walks through five practical Spring Boot 3.2.5 enhancements—including collection‑parameter validation, wildcard @PropertySource loading, improved method injection, custom thread‑pool scheduling, and robust Number‑type request handling—showing code examples, console output, and migration tips from older versions.

BackendJavaScheduling
0 likes · 8 min read
5 Must‑Know Spring Boot 3.2.5 Features You Can Start Using Today
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.

ConfigurationPropertiesJavaLazy Initialization
0 likes · 8 min read
Master Spring Boot Configuration: @ConfigurationProperties, @Value, AOP & Lazy Init
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 22, 2023 · Backend Development

5 Essential Spring Boot 3 Techniques for Validating and Customizing Configuration Properties

This guide demonstrates five practical Spring Boot 3 techniques—including using @ConfigurationProperties with validation, handling missing @Value entries, defining custom property sources, enforcing required properties, and parsing YML files—to ensure robust configuration management and prevent startup failures.

EnvironmentPostProcessorJavaSpring Boot
0 likes · 5 min read
5 Essential Spring Boot 3 Techniques for Validating and Customizing Configuration Properties
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.

@ValidControllerException Handling
0 likes · 10 min read
How to Refactor Spring Boot Controllers for Cleaner, More Maintainable Code
macrozheng
macrozheng
Sep 19, 2024 · Backend Development

Refactor Spring Boot Controllers for Clean Architecture and Unified Responses

This article explains the essential duties of a Spring MVC Controller, identifies common pitfalls such as duplicated validation and inconsistent responses, and demonstrates how to introduce a unified result wrapper, ResponseBodyAdvice, proper message‑converter ordering, JSR‑303 validation, custom validators, and global exception handling to produce concise, maintainable backend code.

ControllerException HandlingJava
0 likes · 19 min read
Refactor Spring Boot Controllers for Clean Architecture and Unified Responses
macrozheng
macrozheng
Aug 23, 2024 · Backend Development

Validate JSON in Spring Boot with JSON Schema: Step‑by‑Step Guide

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

APIBackendJSON schema
0 likes · 7 min read
Validate JSON in Spring Boot with JSON Schema: Step‑by‑Step Guide
macrozheng
macrozheng
Aug 14, 2024 · Backend Development

How to Refactor Bloated Spring Controllers into Clean, Maintainable Code

This article demonstrates how to transform overly complex Spring Boot controllers—filled with try‑catch blocks, validation logic, and business code—into elegant, concise implementations by applying @Valid, separating concerns, and using global exception handling, illustrated with side‑by‑side code comparisons and practical tips for cleaner backend development.

Controller RefactoringException HandlingSpring Boot
0 likes · 10 min read
How to Refactor Bloated Spring Controllers into Clean, Maintainable Code
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 HandlingJava
0 likes · 18 min read
Mastering Spring Boot Controllers: Unified Validation, Response, and Exception Handling
macrozheng
macrozheng
Dec 13, 2021 · Backend Development

Master Spring Validation: From Simple Use to Advanced Techniques and Internals

This guide thoroughly explores Spring Validation, covering basic and advanced usage such as requestBody and requestParam checks, grouping, nested and collection validation, custom constraints, programmatic validation, fail-fast configuration, and the underlying implementation mechanisms within Spring MVC and Hibernate Validator.

Hibernate ValidatorJavaSpring
0 likes · 17 min read
Master Spring Validation: From Simple Use to Advanced Techniques and Internals
macrozheng
macrozheng
Aug 30, 2021 · Backend Development

Master Spring Boot Parameter Validation: Custom Rules, Group Checks, and Global Error Handling

This tutorial explains why parameter validation is essential in Spring Boot APIs, shows how to integrate the JSR‑303 Validator, demonstrates custom annotations, group validation, and simplifies error responses with a global exception handler, providing complete code examples for each step.

Custom AnnotationException HandlingGroup Validation
0 likes · 17 min read
Master Spring Boot Parameter Validation: Custom Rules, Group Checks, and Global Error Handling
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
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Nov 6, 2020 · Fundamentals

Pure Functions, Functors, and Applicative Functors with LazyBox in JavaScript

The article introduces pure functions and shows how JavaScript functors like Box can lazily transform values with map, uses LazyBox to defer side effects until fold, then extends the concept to applicative functors and Either for composable validation via ap and liftA2 helpers.

Functional Programmingapplicative functorfunctor
0 likes · 20 min read
Pure Functions, Functors, and Applicative Functors with LazyBox in JavaScript
政采云技术
政采云技术
Jul 13, 2021 · Frontend Development

Understanding rc-form: Internals, APIs, and Usage in React Forms

This article provides a comprehensive overview of rc-form, a React library used by Ant Design to manage form state, validation, and data collection, explaining why it is needed, its core APIs, practical usage examples, and a deep dive into its internal implementation.

Ant DesignFormReact
0 likes · 19 min read
Understanding rc-form: Internals, APIs, and Usage in React Forms
UC Tech Team
UC Tech Team
Oct 11, 2018 · Backend Development

Avoiding Single Empty Seats in Cinema Seat Selection Using Regex

This article explains how to prevent isolated empty seats when users select cinema seats by modeling seat layouts, defining forbidden patterns, converting them into regular expressions, and implementing concise JavaScript validation code that reduces complex nested if‑statements to a few clear lines.

BackendRegexalgorithm
0 likes · 6 min read
Avoiding Single Empty Seats in Cinema Seat Selection Using Regex
Qunar Tech Salon
Qunar Tech Salon
May 8, 2017 · Databases

Understanding Tomcat JDBC Connection Pool Configuration and Validation Parameters

This article explains how Tomcat JDBC connection pool settings such as testOnBorrow, testOnReturn, testWhileIdle, and testOnConnect work, discusses related parameters like maxActive and removeAbandoned, and presents performance testing to guide reliable and efficient database connection management.

Connection PoolDatabasePerformance
0 likes · 10 min read
Understanding Tomcat JDBC Connection Pool Configuration and Validation Parameters
360 Quality & Efficiency
360 Quality & Efficiency
Feb 12, 2020 · Fundamentals

Common Regular Expressions and Their Syntax

This article introduces the fundamentals of regular expressions, explains their components, syntax rules such as quantifiers and anchors, and provides a collection of frequently used regex patterns for tasks like email validation, ID numbers, dates, IP addresses, and URLs.

RegexRegular Expressionspattern syntax
0 likes · 5 min read
Common Regular Expressions and Their Syntax
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.

BackendPHPjson
0 likes · 7 min read
PHP 8.3 RFC: Built‑in json_validate Function
Laravel Tech Community
Laravel Tech Community
Jun 22, 2021 · Backend Development

PHP Function for Validating Chinese ID Card Numbers

This article explains the structure of Chinese citizen ID numbers and provides a PHP function that validates both 15‑digit and 18‑digit IDs by checking format, birthdate correctness, and computing the checksum according to ISO 7064, accompanied by example usage.

BackendPHPRegex
0 likes · 4 min read
PHP Function for Validating Chinese ID Card Numbers
Laravel Tech Community
Laravel Tech Community
May 6, 2020 · Backend Development

Laravel Validation Cheat Sheet

This article provides a concise Laravel validation cheat sheet that explains the purpose of the Validation helper, shows common code examples for creating and extending validators, and lists the most frequently used validation rules with their syntax for quick reference.

BackendCheat SheetLaravel
0 likes · 2 min read
Laravel Validation Cheat Sheet