Springs - SPLessons
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Spring MVC

Spring MVC

shape Description

Spring MVC is a web application used to develop applications using enterprise Java.Web framework built around the basis of Spring. Model view controller made to simplify the writing and testing of Java web applications. MVC fully integrates with the spring dependency injection framework. MVC was developed and maintained by interface21, recently purchased by VMware. The conceptual figure of MVC as shown below.

DispatcherServlet

The MVC framework was completely constructed with DispatcherServlet.It can manage the request and response at HTTP. Sequence of events corresponding to an incoming Http request to DispatcherServlet is as follows. Parts of WebApplicationContext are as follows. The extension of WebApplicationContext is  PlainApplicationContext.

MVC Overview

Spring MVC framework gives model view controller architecture .The components of MVC used to provide  flexible and loosely coupled web applications.

Defining the DispatcherServlet

Spring MVC framework will be built around the environment of DispatcherServlet. [java] <servlet> <servlet-name>Spring</servlet-name> <servlet-class>org.springframework.web.servlet.dispatcherServlet</servlet-class> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name> </servlet-mapping> [/java]

Summary

shape Key Points

  • DispatcherServlet manages the flow of Spring MVC application.
  • MVC  was developed and maintained by interface21,recently purchased by VMWare.
  • Spring MVC framework will be built around the environment of ispatcherServlet.