Tagged articles

group-validation

9 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Aug 21, 2026 · Backend Development

SpringBoot Core Annotations: @ControllerAdvice, @RestControllerAdvice, @Validated

SpringBoot developers often misuse @ControllerAdvice, @RestControllerAdvice, and @Validated, leading to uncaught exceptions, ambiguous responses, and validation errors; this article explains each annotation’s underlying mechanism, proper usage for global exception handling, data binding, request preprocessing, and group‑based validation, and provides production‑ready code examples.

ControllerAdviceRestControllerAdviceSpringBoot
0 likes · 20 min read
SpringBoot Core Annotations: @ControllerAdvice, @RestControllerAdvice, @Validated
Java Tech Workshop
Java Tech Workshop
Jul 11, 2026 · Backend Development

Mastering @Valid and @Validated: Practical Group Validation in Spring

This article explains the fundamental differences between Spring's @Valid and @Validated annotations, demonstrates how to apply group validation, nested object checks, and custom validation annotations, and provides a complete strategy for global exception handling and production‑grade best practices.

Custom AnnotationJavaSpring
0 likes · 17 min read
Mastering @Valid and @Validated: Practical Group Validation in Spring
CodeNotes
CodeNotes
Jun 3, 2026 · Backend Development

Replace 50 Lines of If-Checks with a Single @Valid in Spring Boot

This guide shows how Spring Boot’s built‑in validation (using @Valid, @Validated and Jakarta Validation annotations) can eliminate repetitive if‑statements, handle nested objects, support group validation, and be extended with custom constraint annotations for clean, maintainable request parameter checks.

@ValidCustom AnnotationHibernate Validator
0 likes · 10 min read
Replace 50 Lines of If-Checks with a Single @Valid in Spring Boot
Xiaolin Talks Programming
Xiaolin Talks Programming
May 31, 2026 · Backend Development

Spring Boot Parameter Validation: From Basic Annotations to Custom Validators & Group Validation

This guide covers Spring Boot parameter validation using Bean Validation annotations, demonstrating basic setup with @Valid/@Validated, custom validator creation for phone numbers, group validation for create/update scenarios, global exception handling for MethodArgumentNotValidException and ConstraintViolationException, and best practices like DTO separation and nested object validation.

Hibernate ValidatorSpring Bootbackend development
0 likes · 12 min read
Spring Boot Parameter Validation: From Basic Annotations to Custom Validators & Group Validation
Top Architect
Top Architect
Jun 3, 2022 · Backend Development

Understanding @Valid vs @Validated, Group Validation, Group Sequence, and Nested Validation in Spring/Hibernate

This article explains the differences between @Valid and @Validated annotations, demonstrates how to use validation groups, group sequences, and nested validation in Spring and Hibernate Validator, and provides complete code examples illustrating each concept for robust backend data validation.

Hibernate ValidationJavaannotations
0 likes · 8 min read
Understanding @Valid vs @Validated, Group Validation, Group Sequence, and Nested Validation in Spring/Hibernate
Programmer DD
Programmer DD
Jan 13, 2021 · Backend Development

Master Spring Validation: Advanced Techniques, Group & Nested Validation, and Custom Rules

This comprehensive guide explores Spring Validation in depth, covering basic usage, dependency setup, requestBody and requestParam validation, unified exception handling, group validation, nested and collection validation, custom constraints, programmatic checks, fail‑fast mode, and the differences between @Valid and @Validated, while revealing the underlying implementation in Spring MVC.

Custom ConstraintHibernate ValidatorSpring Validation
0 likes · 18 min read
Master Spring Validation: Advanced Techniques, Group & Nested Validation, and Custom Rules
Code Ape Tech Column
Code Ape Tech Column
Oct 27, 2020 · Backend Development

Mastering JSR‑303 Validation in Spring Boot: From Basics to Custom Constraints

This article walks through the fundamentals of JSR‑303 Bean Validation in Spring Boot, explains how to add the starter dependency, lists built‑in constraint annotations, demonstrates simple, group and nested validation, shows how to capture validation errors, and guides you through creating custom constraint annotations and validators with full code examples.

Custom ConstraintJSR-303Nested Validation
0 likes · 18 min read
Mastering JSR‑303 Validation in Spring Boot: From Basics to Custom Constraints