S

Satya • 3.38K Points
Extraordinary

Q. What is the purpose of @ModelAttribute?

  • (A) To inject dependencies
  • (B) To bind form data to a model object
  • (C) To configure database
  • (D) To create a bean
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Spring MVC
  • Hashtags:

Explanation by: Satya
@ModelAttribute binds request parameters to a model object and exposes it to the view.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.