• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Spring by
Q:
What is the Model in Spring MVC?

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 in Spring by Robindeniel
0 votes
asked Apr 4 in Spring by Robindeniel
...