Spring-MVC Web Applications

  4.6 out of 5 based on 50 Ratings

This course enables the experienced Java developer to use the Spring application framework to manage objects in a lightweight, inversion-of-control container, and to build sophisticated web applications using the model/view/controller or MVC framework.

Spring's core module gives the developer declarative control over object creation and assembly; this is useful for any tier of any Java application, so we study it in some depth to begin the course. Then students build web applications that use Spring MVC to organize their designs into coherent request/response cycles. They use Spring command objects to manage HTML forms and their data, and connect these to the validation framework. We connect our applications to persistent stores and study the DAO and ORM modules, to better understand JDBC and JPA persistence models and declarative transaction control. The course concludes with a chapter on Spring's testing framework, including the mock-MVC utilities for web controllers.

  1. Understand the scope, purpose, and architecture of Spring
  2. Use Spring application contexts to declare application components, rather than hard-coding their states and lifecycles
  3. Use dependency injection to further control object relationships from outside the Java code base
  4. Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring
  5. Build a web application as a Spring DispatcherServlet and associated application context
  6. Use Spring MVC annotations to develop web controllers, mapping request URLs and other criteria to Java methods and binding request data to method parameters
  7. Build and manage HTML forms with Spring command objects and custom tags
  8. Customize input binding, validation, and error handling
  9. Use Spring interceptors to implement horizontal features in the web application
  10. Connect business objects to persistent stores using Spring's DAO and ORM modules
  11. Simplify JDBC code using Spring templates
  12. Integrate JPA entities and DAOs into Spring applications
  13. Control transactions using Spring, either programmatically or declaratively
  14. Develop effective unit tests using Spring's test framework and the MockMvc environment for web controllers
  1. Overview of Spring
    1. Java EE: The Good, The Bad, and the Ugly
    2. Enter the Framework
    3. Spring Value Proposition
    4. The Spring Container
    5. Web Applications
    6. Persistence Support
    7. Aspect-Oriented Programming
    8. The Java EE Module(s)
  2. The Container
    1. JavaBeans, Reconsidered
    2. The Factory Pattern
    3. Inversion of Control
    4. XML View: Declaring Beans
    5. Java View: Using Beans
    6. Singletons and Prototypes
  3. Instantiation and Configuration
    1. Configuring Through Properties
    2. Configuration Namespaces
    3. The p: Notation
    4. Bean (Configuration) Inheritance
    5. Configuring Through Constructors
    6. Bean Post-Processors
    7. Lifecycle Hooks
    8. Integrating Existing Factory Code
    9. Awareness Interfaces
  4. Dependency Injection
    1. Assembling Object Graphs
    2. Dependency Injection
    3. Single and Multiple Relationships
    4. The Utility Schema
    5. Using Spring Expression Language (SpEL)
    6. Inner Beans
    7. Autowiring
    8. @Component, @Service, & Company
    9. @Autowired Properties
    10. Best Practices with Spring Annotations
    11. Java Classes as @Configurations
    12. AnnotationConfigApplicationContext
    13. Capabilities and Limitations
    14. Mixing and Importing XML and Java Configurations
  5. Assembling Object Models
    1. Collections and Maps
    2. Support for Generics
    3. The Spring Utility Schema (util:)
    4. Autowiring to Multiple Beans
    5. Order of Instantiation
    6. Bean Factory vs. Application Context
  6. The Web Module
    1. Servlets and JSPs: What's Missing
    2. The MVC Pattern
    3. The Front Controller Pattern
    4. DispatcherServlet
    5. A Request/Response Cycle
    6. The Strategy Pattern
    7. Web Application Contexts
    8. Annotation-Based Handler Mappings
    9. @Controller and @RequestMapping
    10. "Creating" a Model
    11. Views and View Resolvers
  7. Handling Requests
    1. Matching URLs
    2. Identifying Views
    3. Request Parameters
    4. Injectable Parameters
    5. Command Objects
    6. Return Types
    7. HTTP Methods
    8. Path Variables
    9. Scope and Granularity of Command Objects
    10. Headers and Cookies
    11. RESTful Web Services
  8. Working with Forms
    1. Form Processing in Spring MVC
    2. Command Objects in Request Methods
    3. Spring Custom Tags
    4. <form:form> and Friends
    5. Text Fields, Check Boxes, and Buttons
    6. Radio Buttons and Select/Option Lists
    7. Command objects at Session Scope
    8. Limitations of @SessionAttributes
  9. Data Binding
    1. A Consolidated Process
    2. Property Editors
    3. DataBinder and @InitBinder Methods
    4. Converters and Formatters
    5. Using <mvc:annotation-driven/>
    6. Custom Formatters
  10. Validation
    1. Validating Form Input
    2. Spring Validators
    3. Deriving a Validator Reference
    4. Applying a Validator
    5. <form:errors>
    6. Bean Validation, a/k/a JSR-303
    7. Configuring Bean-Validation Support
    8. Automatic Support with @Valid
  11. Configuring Spring MVC
    1. Configuring Message Sources
    2. Resolving Error Codes
    3. Codes for Bean Validation
    4. HandlerExceptionResolver
    5. @ExceptionHandler
    6. @ControllerAdvice for Global Error Handling
  12. Interceptors
    1. Interceptors
    2. Configuring Interceptors
    3. Filters in the Request-Handling Cycle
  13. Persistence with JDBC
    1. Reducing Code Complexity
    2. The DataAccessException Hierarchy
    3. JdbcTemplate
    4. RowMapper<T> and ResultSetExtractor<T>
    5. The DaoSupport Hierarchy
    6. Capturing Generated Keys
    7. Transaction Control
    8. TransactionTemplate
    9. Isolation Levels
    10. Transaction Propagation
  14. Persistence with JPA
    1. Object/Relational Mapping
    2. The Java Persistence API
    3. JpaDaoSupport and JpaTemplate
    4. @PersistenceUnit and @PersistenceContext
    5. Shared Entity Managers
    6. Using <tx:annotation-driven>
    7. The @Transaction Annotation
    8. Isolation and Propagation
    9. A Limitation of @Transactional
    10. Understanding Entity States
    11. Bean Validation in JPA
    12. Optimistic Locking
  15. Testing
    1. Testability of Spring Applications
    2. Dependency Injection
    3. Mocking
    4. SpringJUnit4ClassRunner
    5. TestContext
    6. @ContextConfiguration
    7. Preserving Test Isolation
    8. @DirtiesContext
    9. Mocking Spring MVC
    10. Building Requests
    11. Checking the ModelAndView
    12. Profiles
    13. Testing Persistence Components
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following is required for this Spring class:

  • Java programming is required
  • Basic knowledge of XML is recommended
  • Web development with servlets and JSP is recommended
  • For the final chapter some undersatnding of JUnit is required

Experience in the following would be useful for this Spring class:

  • Basic knowledge of XML.
  • Web development with servlets and JSP.
Preparing for Class

Training for your Team

Length: 5 Days
  • Private Class for your Team
  • Online or On-location
  • Customizable
  • Expert Instructors

Training for Yourself

$2,375.00 or 5 vouchers

Upcoming Classes

  • See More Classes

Please select a class.
  • Live Online Training
  • For Individuals
  • Expert Instructors
  • Guaranteed to Run
  • 100% Free Re-take Option
  • 1-minute Video

What people say about our training

The Spring-MVC Web Applications training was excellent and will get you up and running quickly.
Jeff Fry
The Webucator Spring MVC course is put together well, and taught me a lot of detail over the course of a week. I have not been able to learn this much information in a single week in a long time. The information and labs is well planned out and makes learning the content easy.
Walter Bandy
Federal Reserve Bank of St. Louis
This is the best Spring learning experience I have ever had.
Yu Wen
This course gives a very good overview of the Spring Core and MVC frameworks. It was a good means of establishing the fundamentals for further Spring development.
Frederic van West
Choice Hotels International, Inc.

No cancelation for low enrollment

Certified Microsoft Partner

Registered Education Provider (R.E.P.)

GSA schedule pricing


Students who have taken Instructor-led Training


Organizations who trust Webucator for their Instructor-led training needs


Satisfaction guarantee and retake option


Students rated our Spring-MVC Web Applications trainers 9.20 out of 10 based on 50 reviews

Contact Us or call 1-877-932-8228