Spring MVC notes I

  • MVC

  • A web framework built around the principles of Spring
  • POJO based and interface driven
  • Based on a Dispatcher Servlet / Front Controller pattern
  • Support for:
    • Themes
    • Locales | i18n
    • Restful services
    • Annotation based configuration
    • Seamless integration with other Spring Service/beans
  • Request / Response Lifecycle

MVC Framework

  • DispatherServlet: The entry / configuration point for the application
  • Controller: Command pattern object that handles the request and determines which view to route to
  • RequestMapping: The url and request type that a methode is tied to
  • ViewResolver: Used to locate JSP pages etc.
  • Servlet-config: Configuration file per DispatcherServlet
  • POJO: Plain Old Java Object
  • Bean: A Spring configured POJO
  • Maven

  • Dependencies:
    • spring-webmvc
    • servlet-api
    • jstl