spring

@Valid vs @Validated.

Feature@Valid@Validated
SourceJSR-303 (Standard Bean Validation)Spring Specific
ScopeMethods, Fields, ParamsClass level (enables method-level validation)
GroupsNo support for validation groupsSupports validation groups
NestedUsed to trigger nested validationNot used for nesting

Use Case: Use @Validated at the Controller level to enable validation of RequestParams/PathVariables.

@Valid vs @Validated. | DevExCode