Topic

Validation

Collection size
163 articles
Page 7 of 9
FunTester
FunTester
Dec 2, 2021 · Fundamentals

Regular Expressions in Java: Theory, Syntax, and Practical Examples

This article provides a comprehensive overview of Java regular expressions, covering their historical background, core syntax such as character literals, character classes, quantifiers, anchors, and logical operators, and demonstrates practical use cases like validation, splitting, and replacement of strings.

JavaString()Validation
0 likes · 9 min read
Regular Expressions in Java: Theory, Syntax, and Practical Examples
DevOps
DevOps
Nov 19, 2024 · Backend Development

10 Common Interface Performance Optimization Techniques for Backend Development

This article presents ten widely applicable backend performance‑optimization strategies—including defensive validation, batch processing to eliminate N+1 queries, asynchronous execution, parallelism, caching, connection pooling, security hardening, compression, message‑queue decoupling, and design‑pattern reuse—each illustrated with Go code examples and practical case studies.

Design PatternsGoPerformance Optimization
0 likes · 30 min read
10 Common Interface Performance Optimization Techniques for Backend Development
Top Architect
Top Architect
Nov 3, 2024 · Backend Development

Improving Spring Boot Controllers: From Bad Practices to Clean Design with @Valid and Global Exception Handling

This article examines common pitfalls in Spring Boot controller implementations, demonstrates how to refactor messy controllers into clean, maintainable code using @Valid for input validation and a centralized exception handler, and highlights best‑practice guidelines for backend development.

Controller DesignException HandlingJava
0 likes · 11 min read
Improving Spring Boot Controllers: From Bad Practices to Clean Design with @Valid and Global Exception Handling
Top Architect
Top Architect
Sep 28, 2024 · Backend Development

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

This article critiques overly complex Spring Boot controllers filled with try-catch and validation logic, demonstrates a cleaner implementation using @Valid annotations and reduced code, provides global exception handling examples, and concludes with advice on maintaining concise controller methods while also promoting related community resources.

ControllerJavaSpringBoot
0 likes · 11 min read
Improving Spring Boot Controllers: From Messy to Elegant with @Valid and Global Exception Handling
Top Architect
Top Architect
Sep 24, 2024 · Backend Development

Improving Spring Boot Controllers: From Unclean to Elegant with Validation and Global Exception Handling

This article examines common pitfalls in Spring Boot controller implementations, demonstrates how excessive if‑else checks and business logic in controllers degrade code quality, and provides clean, refactored examples using @Valid validation, concise error handling, and a global exception handler to achieve more maintainable backend services.

Controller DesignException HandlingJava
0 likes · 11 min read
Improving Spring Boot Controllers: From Unclean to Elegant with Validation and Global Exception Handling
Top Architect
Top Architect
Aug 14, 2024 · Backend Development

Improving Spring Boot Controllers: From Messy to Elegant with Validation and Exception Handling

This article examines common pitfalls in Spring Boot controller design, showcases messy examples, then demonstrates cleaner implementations using @Valid for parameter validation, streamlined exception handling, and best‑practice refactoring to produce more maintainable backend code.

ControllerException HandlingSpring Boot
0 likes · 12 min read
Improving Spring Boot Controllers: From Messy to Elegant with Validation and Exception Handling
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.

AnnotationsCustomValidatorJava
0 likes · 11 min read
Elegant Parameter Validation in Spring Using @Validated and Custom Annotations
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
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 HandlingJava
0 likes · 17 min read
Refactoring the Spring Boot Controller Layer for Clean Architecture and Unified Responses
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 ResponsibilityJavaValidation
0 likes · 11 min read
Chain of Responsibility Pattern in Java: Design, Implementation, and Practical Example
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
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 HandlingJava
0 likes · 19 min read
Improving Controller Layer Logic: Unified Response Wrapping, Validation, and Exception Handling in Spring MVC
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.

AnnotationsExceptionHandlingJava
0 likes · 13 min read
Spring Boot Parameter Validation with javax.validation and Custom Annotations
Top Architect
Top Architect
Jun 25, 2021 · Fundamentals

Comprehensive Collection of Regular Expressions for Data Validation

This article provides an extensive set of regular expression patterns for validating numbers, characters, and special formats such as email, URLs, phone numbers, dates, IP addresses, and more, offering developers ready-to-use solutions for common data validation tasks across various programming contexts.

ProgrammingValidationbackend
0 likes · 15 min read
Comprehensive Collection of Regular Expressions for Data Validation
Top Architect
Top Architect
Sep 30, 2020 · Backend Development

How to Create and Use Custom Annotations for Field, Method, and Class Validation in Java

This article explains how to define custom Java annotations for field, method, and class validation, demonstrates the required @Target and @Retention settings, shows how to implement a ConstraintValidator, and provides practical Spring examples for permission checks and caching using interceptors and aspects.

Aspect-Oriented ProgrammingCustom AnnotationJava
0 likes · 9 min read
How to Create and Use Custom Annotations for Field, Method, and Class Validation in Java
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 HandlingJava
0 likes · 15 min read
Improving Spring Controller Layer: Unified Response Structure, Validation, and Exception Handling
IT Xianyu
IT Xianyu
Nov 13, 2020 · Backend Development

Creating and Using Custom Annotations in Spring for Validation, Permission, and Caching

This article explains how to create and use custom Java annotations in Spring for field validation, permission checks, and caching, including the definition of annotation types, associated validator and interceptor classes, and practical usage examples with code snippets.

AnnotationsJavaSpring
0 likes · 9 min read
Creating and Using Custom Annotations in Spring for Validation, Permission, and Caching
IT Xianyu
IT Xianyu
Oct 30, 2020 · Databases

Abnormal SQL Query Caused CPU Saturation: Diagnosis and Fix with Index Optimization

A production MySQL query that omitted its leftmost indexed column caused a full‑table scan, CPU overload, and a read‑only alert, prompting a rapid investigation, temporary index addition, and a deeper discussion of the left‑most matching principle, Java validation pitfalls, and best‑practice lessons.

IndexingJavaPerformance
0 likes · 8 min read
Abnormal SQL Query Caused CPU Saturation: Diagnosis and Fix with Index Optimization
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
Selected Java Interview Questions
Selected Java Interview Questions
Apr 24, 2022 · Backend Development

Comprehensive Guide to Spring Validation: Best Practices, Advanced Usage, and Implementation Details

This article provides an in‑depth tutorial on Spring Validation, covering basic usage, dependency setup, requestBody and requestParam validation, DTO constraints, group and nested validation, collection handling, custom validators, programming‑style validation, fail‑fast mode, and the underlying implementation mechanisms in Spring MVC.

DTOHibernateValidatorJava
0 likes · 16 min read
Comprehensive Guide to Spring Validation: Best Practices, Advanced Usage, and Implementation Details