In Spring Boot, to apply JSR-303 Bean Validation on method parameters, the _____ annotation is used.

  • @Constraint
  • @PathVariable
  • @RequestParam
  • @Validated
In Spring Boot, to apply JSR-303 Bean Validation on method parameters, you use the @Validated annotation. This annotation is typically applied to controller methods to trigger method-level validation. While the other annotations (@RequestParam, @PathVariable, and @Constraint) have their uses in Spring Boot, they are not specifically used for JSR-303 Bean Validation on method parameters.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *