Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

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

COURSE AGENDA

1

A Brief Review of the Spring Framework

  • ApplicationContext
  • Dependency Injection
  • Annotation and XML based configuration
2

Integrating Spring with Web Applications

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

Spring MVC Overview

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

Spring MVC – Controllers

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

Handling Forms

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

Conversions

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

Supporting different Locales

  • LocaleResolvers
  • LocaleChangeInterceptor
8

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
9

Spring MVC – Views

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

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
11

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 https://www.encartalabs.com/course-catalogue-all.php

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

Top
Notice
X