Spring-MVC Web Applications

Customized Onsite Training

5
Days
  • Customized Content
  • For Groups of 5+
  • Online or On-location
  • Expert Instructors

Live Online Training

$2,375.00
or 5 vouchers
  • Live Online Training
  • Expert Instructors
  • Guaranteed to Run
  • 100% Free Re-take Option
  • 1-minute Video

Upcoming Classes

  • See More Classes

Please select a class.
Overview

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.

Goals
  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
Outline
  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

No cancelation for low enrollment

Certified Microsoft Partner

Registered Education Provider (R.E.P.)

GSA schedule pricing

74,839

Students who have taken Live Online Training

15,233

Organizations who trust Webucator for their training needs

100%

Satisfaction guarantee and retake option

9.51

Students rated our Spring-MVC Web Applications trainers 9.51 out of 10 based on 16 reviews

Contact Us or call 1-877-932-8228