S

Satya • 3.38K Points
Extraordinary

Q. Which annotation is used to validate a form object in Spring MVC?

  • (A) @Valid
  • (B) @Bean
  • (C) @Autowired
  • (D) @Component
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Spring MVC
  • Hashtags:

Explanation by: Satya
@Valid is used with a model object to trigger validation using JSR-303/JSR-380 validation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.