S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to apply validation rules to a model?

  • (A) @Valid
  • (B) @Validated
  • (C) @Validator
  • (D) @ValueCheck
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@Valid is used to validate a method parameter or model in Spring Boot.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.