Training Capstone Courseware

Training goals

code: CC-117A | version: v4.2

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.

Learning Objectives

  • Understand the scope, purpose, and architecture of Spring
  • Use Spring application contexts to declare application components, rather than hard-coding their states and lifecycles
  • Use dependency injection to further control object relationships from outside the Java code base
  • Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring
  • Build a web application as a Spring DispatcherServlet and associated application context
  • Use Spring MVC annotations to develop web controllers, mapping request URLs and other criteria to Java methods and binding request data to method parameters
  • Build and manage HTML forms with Spring command objects and custom tags
  • Customize input binding, validation, and error handling
  • Use Spring interceptors to implement horizontal features in the web application
  • Connect business objects to persistent stores using Spring's DAO and ORM modules
  • Simplify JDBC code using Spring templates
  • Integrate JPA entities and DAOs into Spring applications
  • Control transactions using Spring, either programmatically or declaratively
  • Develop effective unit tests using Spring's test framework and the MockMvc environment for web controllers

Conspect Show list

  1. Overview of Spring
    • Java EE: The Good, The Bad, and the Ugly
    • Enter the Framework
    • Spring Value Proposition
    • The Spring Container
    • Web Applications
    • Persistence Support
    • Aspect-Oriented Programming
    • The Java EE Module(s)
  2. The Container
    • JavaBeans, Reconsidered
    • The Factory Pattern
    • Inversion of Control
    • XML View: Declaring Beans
    • Java View: Using Beans
    • Singletons and Prototypes
  3. Instantiation and Configuration
    • Configuring Through Properties
    • Configuration Namespaces
    • The p: Notation
    • Bean (Configuration) Inheritance
    • Configuring Through Constructors
    • Bean Post-Processors
    • Lifecycle Hooks
    • Integrating Existing Factory Code
    • Awareness Interfaces
  4. Dependency Injection
    • Assembling Object Graphs
    • Dependency Injection
    • Single and Multiple Relationships
    • The Utility Schema
    • Using Spring Expression Language (SpEL)
    • Inner Beans
    • Autowiring
    • @Component, @Service, & Company
    • @Autowired Properties
    • Best Practices with Spring Annotations
    • Java Classes as @Configurations
    • AnnotationConfigApplicationContext
    • Capabilities and Limitations
    • Mixing and Importing XML and Java Configurations
  5. Assembling Object Models
    • Collections and Maps
    • Support for Generics
    • The Spring Utility Schema (util:)
    • Autowiring to Multiple Beans
    • Order of Instantiation
    • Bean Factory vs. Application Context
  6. The Web Module
    • Servlets and JSPs: What's Missing
    • The MVC Pattern
    • The Front Controller Pattern
    • DispatcherServlet
    • A Request/Response Cycle
    • The Strategy Pattern
    • Web Application Contexts
    • Annotation-Based Handler Mappings
    • @Controller and @RequestMapping
    • "Creating" a Model
    • Views and View Resolvers
  7. Handling Requests
    • Matching URLs
    • Identifying Views
    • Request Parameters
    • Injectable Parameters
    • Command Objects
    • Return Types
    • HTTP Methods
    • Path Variables
    • Scope and Granularity of Command Objects
    • Headers and Cookies
    • RESTful Web Services
  8. Working with Forms
    • Form Processing in Spring MVC
    • Command Objects in Request Methods
    • Spring Custom Tags
    • and Friends
    • Text Fields, Check Boxes, and Buttons
    • Radio Buttons and Select/Option Lists
    • Command objects at Session Scope
    • Limitations of @SessionAttributes
  9. Data Binding
    • A Consolidated Process
    • Property Editors
    • DataBinder and @InitBinder Methods
    • Converters and Formatters
    • Using
    • Custom Formatters
  10. Validation
    • Validating Form Input
    • Spring Validators
    • Deriving a Validator Reference
    • Applying a Validator
    • Bean Validation, a/k/a JSR-303
    • Configuring Bean-Validation Support
    • Automatic Support with @Valid
  11. Configuring Spring MVC
    • Configuring Message Sources
    • Resolving Error Codes
    • Codes for Bean Validation
    • HandlerExceptionResolver
    • @ExceptionHandler
    • @ControllerAdvice for Global Error Handling
  12. Interceptors
    • Interceptors
    • Configuring Interceptors
    • Filters in the Request-Handling Cycle
  13. Persistence with JDBC
    • Reducing Code Complexity
    • The DataAccessException Hierarchy
    • JdbcTemplate
    • RowMapperand ResultSetExtractor
    • The DaoSupport Hierarchy
    • Capturing Generated Keys
    • Transaction Control
    • TransactionTemplate
    • Isolation Levels
    • Transaction Propagation
  14. Persistence with JPA
    • Object/Relational Mapping
    • The Java Persistence API
    • JpaDaoSupport and JpaTemplate
    • @PersistenceUnit and @PersistenceContext
    • Shared Entity Managers
    • Using
    • The @Transaction Annotation
    • Isolation and Propagation
    • A Limitation of @Transactional
    • Understanding Entity States
    • Bean Validation in JPA
    • Optimistic Locking
  15. Testing
    • Testability of Spring Applications
    • Dependency Injection
    • Mocking
    • SpringJUnit4ClassRunner
    • TestContext
    • @ContextConfiguration
    • Preserving Test Isolation
    • @DirtiesContext
    • Mocking Spring MVC
    • Building Requests
    • Checking the ModelAndView
    • Profiles
    • Testing Persistence Components
Download conspect training as PDF

Additional information

Prerequisites
  • Java programming is required -- Course 103 is excellent preparation.
  • Basic knowledge of XML is recommended -- Course 501 Introduction to XML.
  • Web development with servlets and JSP is recommended -- Course 111.
  • For the final chapter some undersatnding of JUnit is required -- Course 191 Introduction to Java Testing.
Difficulty level
Duration 5 days
Certificate

The participants will obtain certificates signed by Capstone Courseware.

Trainer

Authorized Capstone Courseware Trainer.

Other training Capstone Courseware | Open-Source Frameworks

Training thematically related

Java

Programming

Web development

Contact form

Please fill form below to obtain more info about this training.







* Fields marked with (*) are required !!!

Information on data processing by Compendium - Centrum Edukacyjne Spółka z o.o.

PRICE 1100 EUR

FORM OF TRAINING ?

 

TRAINING MATERIALS ?

 

SELECT TRAINING DATE

    • General information
    • Guaranteed dates
    • Last minute (-10%)
    • Language of the training
    • English
Book a training appointment
close

Traditional training

Sessions organised at Compendium CE are usually held in our locations in Kraków and Warsaw, but also in venues designated by the client. The group participating in training meets at a specific place and specific time with a coach and actively participates in laboratory sessions.

Dlearning training

You may participate from at any place in the world. It is sufficient to have a computer (or, actually a tablet, or smartphone) connected to the Internet. Compendium CE provides each Distance Learning training participant with adequate software enabling connection to the Data Center. For more information, please visit dlearning.eu site

close

Paper materials

Traditional materials: The price includes standard materials issued in the form of paper books, printed or other, depending on the arrangements with the manufacturer.

Electronic materials

Electronic materials: These are electronic training materials that are available to you based on your specific application: Skillpipe, eVantage, etc., or as PDF documents.

Ctab materials

Ctab materials: the price includes ctab tablet and electronic training materials or traditional training materials and supplies provided electronically according to manufacturer's specifications (in PDF or EPUB form). The materials provided are adapted for display on ctab tablets. For more information, check out the ctab website.

Upcoming Capstone Courseware training

Training schedule
Capstone Courseware