What is @ModelAttribute in Spring MVC?

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

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

13条回答
  •  名媛妹妹
    2020-11-22 09:31

    @ModelAttribute can be used as the method arguments / parameter or before the method declaration. The primary objective of this annotation to bind the request parameters or form fields to an model object

    Ref. http://www.javabeat.net/modelattribute-spring-mvc/

提交回复
热议问题