as i understand MVC pattern as post MVC question
-
- the Model is the part of the code that knows things
- the View is the part of the code that shows the things the Model knows
- the Controller is the part of the code that gets commands from the user and tells the View what to show and the Model what to know.
in spring-mvc we have DispatcherServlet
which acts as controller gets command from client, also we have developer written controllers which serve commands and resolve the view and prepare Model for that view
in spring-mvc what exactly acts as controller DispatcherServlet
or developer written controllers