- The Model encapsulates the application data and in general they will consist of POJO.
- The View is responsible for rendering the model data and in general it generates HTML output that the client's browser can interpret.
- The Controller is responsible for processing user requests and building appropriate model and passes it to the view for rendering.
- One or more controllers that invoke business logic and create a ModelAndView object
- A visualization component such as a JSP
- XML or annotation configuration to wire the components together
- Redirect to static views
- Provide basic servlet-like functionality
- Process commands
- Process shared actions
- Handle forms
- Provide wizard-like functionality to process multipage forms
If you really want to learn and implement Spring MVC in your Java projects, I recommend you to have you Eclipse IDE ready and watch "Spring MVC Tutorial for Beginners" YouTube video. That tutorial will guide you step by step in a very easy and detailed way. So far, one of the best tutorials.
No comments:
Post a Comment