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
Programmer DD
Programmer DD
Aug 6, 2020 · Backend Development

When to Use @Validated vs @Valid for Nested Validation in Spring

This article explains the differences between Spring's @Validated and the standard @Valid annotations, covering grouping support, where each can be applied, and how to enable nested validation for complex objects in controller parameters.

AnnotationsBackendNested Validation
0 likes · 6 min read
When to Use @Validated vs @Valid for Nested Validation in Spring