1 Answer

0 votes
by

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 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.

Related questions

0 votes
asked Apr 4, 2021 in Spring by Robindeniel
0 votes
asked Apr 4, 2021 in Spring by Robindeniel
...