Topic

Validation

Collection size
163 articles
Page 8 of 9
Selected Java Interview Questions
Selected Java Interview Questions
Jul 23, 2021 · Backend Development

Global Exception Handling in Spring MVC Using @ControllerAdvice and @ExceptionHandler

This article explains why global exception handling is needed in Spring MVC, outlines its application scenarios, compares AOP with the simpler @ControllerAdvice/@ExceptionHandler approach, and provides detailed code examples for custom response objects, validation handling, and transaction rollback strategies to improve code cleanliness and maintainability.

BackendControllerAdviceException Handling
0 likes · 11 min read
Global Exception Handling in Spring MVC Using @ControllerAdvice and @ExceptionHandler
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.

BackendControllerExceptionHandling
0 likes · 19 min read
Best Practices for Designing an Excellent Controller Layer in Spring MVC
Java Captain
Java Captain
Apr 29, 2022 · Backend Development

Best Practices for Java Bean Conversion, Validation, and Refactoring

This article discusses practical techniques for Java developers, covering bean conversion using DTOs and Spring utilities, validation with JSR‑303, leveraging Lombok for cleaner code, applying design patterns, and systematic refactoring to improve readability, maintainability, and overall code quality in backend projects.

DTOJavaLombok
0 likes · 27 min read
Best Practices for Java Bean Conversion, Validation, and Refactoring
Java Captain
Java Captain
May 3, 2021 · Fundamentals

Common Regular Expressions for Validating Numbers, Characters, and Special Formats

This article provides a comprehensive collection of regular expression patterns for validating various numeric formats, character sets, and special input requirements such as email, URLs, phone numbers, dates, and IP addresses, offering developers ready-to-use examples for input validation tasks.

BackendFundamentalsRegex
0 likes · 9 min read
Common Regular Expressions for Validating Numbers, Characters, and Special Formats
Java Captain
Java Captain
Aug 21, 2020 · Backend Development

Creating Custom Annotations for Validation, Permission, and Caching in Java Backend Development

This article explains how to design and implement custom Java annotations for field validation, permission checks, and caching, covering annotation definitions, target and retention policies, validator classes, interceptor and aspect implementations, and practical usage examples within Spring MVC.

Aspect-Oriented ProgrammingJavaSpring
0 likes · 9 min read
Creating Custom Annotations for Validation, Permission, and Caching in Java Backend Development
Java Captain
Java Captain
Jun 10, 2019 · Fundamentals

Common Regular Expressions for Validating Numbers, Characters, and Special Formats

This article provides a comprehensive collection of regular expression patterns for validating various numeric formats, character sets, and special input requirements such as email addresses, URLs, phone numbers, IDs, passwords, dates, and IP addresses, with clear examples for each case.

BackendPattern MatchingRegex
0 likes · 9 min read
Common Regular Expressions for Validating Numbers, Characters, and Special Formats
php中文网 Courses
php中文网 Courses
Apr 19, 2024 · Information Security

Secure File Upload: Validation, Size Checks, and Vulnerability Prevention

This article explains how to secure file uploads in web applications by validating file types, enforcing size limits, and preventing upload vulnerabilities through safe storage practices, providing PHP code examples for each protective measure.

File UploadPHPsecurity
0 likes · 5 min read
Secure File Upload: Validation, Size Checks, and Vulnerability Prevention
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.

APIBackendException Handling
0 likes · 6 min read
Developing Stable and Reliable API Interfaces with ThinkPHP6
php中文网 Courses
php中文网 Courses
Mar 23, 2023 · Backend Development

Implementing Password Strength Validation in Laravel with schuppo/password-strength

This guide explains how to install the schuppo/password-strength package in Laravel, configure custom validation messages for letters, case differences, numbers, and symbols, and apply these rules in a validator to enforce strong passwords such as a minimum length with mixed character types.

password strengthvalidation
0 likes · 3 min read
Implementing Password Strength Validation in Laravel with schuppo/password-strength
php中文网 Courses
php中文网 Courses
Apr 8, 2021 · Backend Development

Simplifying Validation in ThinkPHP with an AOP‑Style BaseValidate Class

This tutorial explains how to reduce repetitive validation code in a ThinkPHP project by creating a reusable BaseValidate class that leverages AOP principles, automatically handles request data, and centralizes error handling for cleaner, more maintainable backend code.

aopvalidation
0 likes · 4 min read
Simplifying Validation in ThinkPHP with an AOP‑Style BaseValidate Class
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
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
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.

CachingDecoratorsError Handling
0 likes · 9 min read
Python Decorators: Ten Practical Custom Decorators with Code Examples
Model Perspective
Model Perspective
Oct 26, 2024 · Fundamentals

How to Build Effective Mathematical Models: A Step‑by‑Step Guide

This article outlines the complete process of constructing robust mathematical models—from defining objectives and analyzing system boundaries to selecting equations, solving analytically or numerically, and validating results—illustrated with a population growth case study and practical tips for each stage.

equation solvingmathematical modelingmodeling process
0 likes · 10 min read
How to Build Effective Mathematical Models: A Step‑by‑Step Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 18, 2024 · Backend Development

When to Use @Validated vs @Valid in Spring Boot: A Complete Guide

This article explains the key differences between Spring's @Validated and @Valid annotations, covering their origins, support for group validation, nested property handling, usage in Spring MVC, practical code examples, custom annotations, and the underlying validation mechanism.

AnnotationsBackendJava
0 likes · 7 min read
When to Use @Validated vs @Valid in Spring Boot: A Complete Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 22, 2024 · Backend Development

Master Spring Boot: Unified Paths, Static Resources, Validation, and More

Learn how to configure Spring Boot 2.7.16 for unified API prefixes, custom static resource locations, annotation‑based and custom parameter validation, global exception handling, request inspection via HttpEntity, CORS filtering, custom error pages, and reliable ServletContext access using ApplicationListener.

BackendCORSExceptionHandling
0 likes · 7 min read
Master Spring Boot: Unified Paths, Static Resources, Validation, and More
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.

Regexdata validationinput validation
0 likes · 15 min read
Mastering Common Regex Patterns for Data Validation
Efficient Ops
Efficient Ops
Jun 15, 2021 · Frontend Development

Mastering Regex: Essential Patterns for Validating Numbers, Text, and URLs

This guide compiles a comprehensive collection of regular expressions for validating numeric formats, character sets, special inputs like emails and URLs, as well as IP addresses, dates, and other common data patterns, providing clear examples and explanations for developers.

BackendRegexdata-format
0 likes · 17 min read
Mastering Regex: Essential Patterns for Validating Numbers, Text, and URLs
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 designBackendException Handling
0 likes · 17 min read
18 Essential API Design Rules Every Backend Developer Should Follow