What is @ModelAttribute in Spring MVC?

后端 未结 13 1014
一个人的身影
一个人的身影 2020-11-22 08:43

What is the purpose and usage of @ModelAttribute in Spring MVC?

13条回答
  •  一生所求
    2020-11-22 09:23

    @ModelAttribute simply binds the value from jsp fields to Pojo calss to perform our logic in controller class. If you are familiar with struts, then this is like populating the formbean object upon submission.

提交回复
热议问题