Spring 4 MVC Introduction

Topics 

  • Introduction to Spring MVC 
  • DispatchServlet, Context configuration 
  • SpringMVC interfaces

Introduction to Spring MVC

What is Spring MVC? 

  • MVC-based Web application framework that takes advantage of design principles of Spring framework 
    • Dependency Injection 
    • Interface-driven design 
    • POJO style everywhere 
    • Test-driven development

Features of Spring MVC 

  • Clear separation of roles 
    • Controller, validator, command object, form object, model object, DispatcherServlet, handler mapping, view resolver, and so on 
    • These roles are represented by Java interfaces and their implementations - each of these roles can be pluggable 
  • Powerful and straightforward configuration 
    • Both framework and application classes are configured as POJOs 
  • Adaptability, non-intrusiveness, and flexibility 
    • Example: define any controller method signature you need with @Controller annotation for a given scenario
  • Customizable data binding, type conversion, and validation 
    • Data binding allows user input to be dynamically bound to the domain model of an application 
  • Customizable handler mapping and view resolution 
    • Handler mapping and view resolution strategies range from simple URL-based configuration, to sophisticated resolution strategies 
  • Flexible model transfer 
    • Model transfer with a name/value Map supports easy integration with any view technology 
  • Customizable locale and theme resolution 
  • JSP tag library known as the Spring tag library 
  • Template technologies: thymeleaf, freemaker, velocity

 

Download Course Contents