Spring Annotation @Validated and @Valid

@Validated @Valid
mark a member attribute for validation ✖️ ✅
group-level validation ✅ ️ ✖️
mark request parameter for validation ✅ ✅

Example 1

validated-valid-1

Example 2

validated-valid-2

This note borrows code from Differences in @Valid and @Validated Annotations in Spring

ссс