Tagged articles
5 articles
Page 1 of 1
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.

Backend DevelopmentGroup ValidationHibernate Validation
0 likes · 8 min read
Understanding @Valid vs @Validated, Group Validation, Group Sequence, and Nested Validation in Spring/Hibernate
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
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.

Bean ValidationCustom ConstraintGroup 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.

Bean ValidationCustom ConstraintGroup Validation
0 likes · 18 min read
Mastering JSR‑303 Validation in Spring Boot: From Basics to Custom Constraints