1.

What is the Model in Spring MVC?

Answer»
  • Model is a reference to have the data for rendering.
  • It is always created and PASSED to the view in Spring MVC. If a mapped controller METHOD has Model as a parameter, then that model instance is automatically injected to that method.
  • Any ATTRIBUTES set on the injected model WOULD be PRESERVED and passed to the View.


Discussion

No Comment Found