Call : (+91) 968636 4243
Mail :

Spring MVC

( Duration: 3 Days )

The Spring MVC training course focuses on developing web applications using the Spring Framework and its related Web components, primarily Spring MVC. The course begins with a review of the primary Spring concepts (like IoC/DI, AOP, etc), and then quickly moves into an examination of building web applications using Spring MVC. You will learn to work with key Spring MVC concepts like: Customizing control flow through HandlerMappings, ViewResolvers, and Controllers; Binding and validating using Property Editors, and processing forms through Form Controllers.

By attending Spring MVC workshop, delegates will learn to:

  • Understand the Spring MVC framework Architecture
  • Understand and be able to use the various API elements and annotations to create Controllers
  • Understand and be able to use the different mechanisms available to do conversions and validations in web applications
  • Understand how to internationalize web applications using Spring MVC
  • Understand how to handle Locale properly
  • Understand the role that View Resolvers play in Spring MVC, and how to use to use multiple View Resolvers
  • Understand how to integrate the Tiles framework with Spring MVC
  • Understand how to be able to handle unexpected exceptions using Exception Resolvers
  • Understand how to use Junit to test web application components
  • Understand the role of Spring Security, and how to use it to secure web applications

  • This Spring MVC class is intended for Experienced Java web developers and Spring Framework programmers looking to adopt Spring MVC



A Brief Review of the Spring Framework

  • ApplicationContext
  • Dependency Injection
  • Annotation and XML based configuration

Integrating Spring with Web Applications

  • Using the ContextLoaderListener to create an ApplicationContext
  • Using WebApplicationContextUtils to access the ApplicaitonContext

Spring MVC Overview

  • Overview and comparisons to other frameworks
  • Spring MVC architecture
  • The parts of a Spring MVC application
  • Spring MVC configuration

Spring MVC – Controllers

  • Declaring Annotation based controllers – @Controller
  • Mapping URLs to controllers – @RequestMapping
  • Input parameters – @RequestParam
  • Using logical view names – InternalResourceViewResolver

Handling Forms

  • Creating “Model” objects (@ModelAttribute)
  • Pre-populating Forms
  • Handling POST requests
  • Spring form tags


  • PropertyEditors
  • Handling Errors
  • Conversion Service, Formatters and Converters

Supporting different Locales

  • LocaleResolvers
  • LocaleChangeInterceptor

Performing Data Validations

  • Spring Validation – how it works, creating custom validators, invoking validation in controllers
  • JSR 303 Validation – how it works, creating custom validators, invoking JSR-303 validation in controller

Spring MVC – Views

  • Other ViewResolvers -BeanNameViewResolver, XmlViewResolver,
  • ResourceBundleViewResolver
  • Using Multiple View Resolvers
  • Integrating Tiles
  • Creating custom Views

Handler Mappings and Exception Resolvers

  • Handler Mappings – Default Handler Mapping, Using to handle static requests, Simple URL Handler Mapping
  • Creating a “legacy” Controller
  • Handling unexpected exceptions using Simple Mapping Exception Resolver
  • Creating a Handler Interceptor using HandlerInterceptors

Testing Spring MVC applications

  • Using SpringJUnit4ClassRunner
  • @DirtiesContext
  • Using Spring Mock Objects to test Controllers

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.