Instructor-led training
Fast Track to Spring Framework 3 .x, Spring Framework MVC and Spring Framework Web Flow Training in Bielefeld, Germany
Fast Track to Spring 3 .x, Spring MVC and Spring Web Flow Spring is a lightweight Java framework for building enterprise applications.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Bielefeld, Germany or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
1. Introduction to Spring
The Challenge of Enterprise
Applications
Shortcomings of Java/Java EE
What is Spring?
The Spring Modules
The Spring Distribution
Spring Introduction
Managing Beans
A Basic Spring Application
Some Bean Classes
Configuration Metadata
Declaring Beans
The Spring Container
Working with Spring
Why Bother?
Dependencies and Dependency Injection
Dependencies Between Objects
Dependency Inversion Principal
Dependency Injection(DI) in Spring
Dependency Injection Configuration
Advantages of Dependency Injection
Dependency Injection Reduces Coupling
2. More about BeanProperties
Working with Properties
Configuring Value Based Properties
Using Value Based Properties
Property Conversions
Constructor Injections
Constructor Argument Resolution
Setter Injection vs. Constructor Injection
Collection Valued Properties
Working with Collections
Configuring and
Configuring Collections of Bean
References
Map Valued Properties
java.util.Properties Valued Properties
Additional Capabilities
Factory Methods
Instance Factory Methods
Bean Aliases
Bean Definition Inheritance
Autowiring
Autowiring byType
Pros and Cons of Autowiring
To Autowire or Not to Autowire
3. The Spring Container and API
ApplicationContext
ApplicationContext Interface
ApplicationContext Implementations
Constructors
Using an ApplicationContext
Spring Resource Access
Built-in Resource Implementations
Bean Scope and Lifecycle
Bean Scope
Specifying Bean Scope
Inner Beans
Compound Names
Depends On
Bean Creation Lifecycle
Bean Creation Lifecycle Details
Using the Lifecycle Interfaces for Beans
Bean Destruction Lifecycle
BeanPostProcessor
@PostConstruct and @PreDestroy
Event Handling
Annotation Driven Configuration
Annotations in Spring
Enabling Spring Annotations
@Component and Auto-Detecting Beans
Complete Declarations Using
Annotations
Qualifiers
Lifecycle Annotations
Annotation Configuration-Pro/Con
Java-Based Configuration
How it Works
Classpath Scanning
Other @Bean Capabilities
Java-Based Configuration- Pro / Con
Maven and Spring
About Maven
How We Work with Maven
The POM (Project Object Model)
Repositories
Maven Project Structure
Eclipse/Maven Integtration
4. Database Access with Spring
DAO Support
Datasources
Looking up a DataSource in JNDI
Using Spring with Hibernate
Typical Hibernate Configuration File
Spring Support for Hibernate
LocalSessionFactoryBean
Configuring a Hibernate Session Factory
Contextual Sessions
Spring Free DAO
What Approach to Use
Using Spring with JPA
Template Support for JPA
Managing EntityManager
Container-Managed EntityManager
JEE:Obtaining an EntityManager from JNDI
Additional Spring Configuration
JPA Data Access Object
Extended Persistence Context
5. Transactions
Spring
Transaction Management
Configuring Transaction Managers
JTA Transaction Manager
Spring Declarative Transaction Management
Spring Transactional Scope
Transaction Attributes for Propagation
MANDATORY
NESTED
NEVER
NOT_SUPPORTED
REQUIRED
REQUIRES_NEW
SUPPORTS
Transaction Attributes-Some Choices
Specifying Transaction Attributes
Additional Transactional Attributes
Rolling Back and Exceptions
XML Configuration
Specifying Transaction Using XML
Spring Transactions and AOP
Defining a Pointcut
Linking Advice with Pointcuts
Why Use XML Configuration
6. Web Applications with Spring MVC
Integration with Java EE
Spring and Java EE
Java EE Web Applications
Web Application Structure
Web Application Components
ApplicationContext and Web Apps
Configuring ContextLoaderListener
Using the Application Context
Spring MVC Basics
What is Spring MVC?
MVC Architecture
MVC Pattern Flow
Spring MVC Architecture
Simple Search App Model-Servlets/JSP/MVC
DispatcherServlet
DispatcherServlet Initialization
Controllers
Very Simple Controller
Control Flow
@RequestParam-Parameter Binding
The JSP Pages
Other Handler Method Capabilities
Parameters and Models
View Resolvers
Controller with Logical Names
Other View Resolvers
Forms and Command Objects
Spring MVC Form Tags
A JavaBean Command Class
Working with Model Classes
Request Handling Flow
Exposing Reference Data in the Model
7. Spring Security Overview
Spring Security
Spring Web Security-web.xml
Spring Web Security-Spring
Configuration
More
Other User Details Services
Method Security
Method Security-Annotations
Method Security-Pointcut Expressions
Method Security-XML Configuration
8. Introducing Spring Web Flow
Spring Web Flow Overview
The Need for Spring Web Flow
What is Spring Web Flow?
Benefits of Spring Web Flow
Overview of Flow in SWF
Elements of a Flow
Defining a Flow
Defining Flows
Elements of a Flow Definition
How a Flow Works-Start State
How a Flow Works-Transition
How a Flow Works-End State
How a Flow Works-Web Pages
Leaving a Flow
Basic System Configuration
Configuring Spring Web Flow
Configuring a Flow Registry
Integrating with Spring MVC
Customizing the Flow Registry
Complete Context Configuration
Working with Data and Actions
Data Available to a Flow
Flow Instance Variables
Binding Model Objects to Views
View Pages and Model Binding
Flow Inputs in Flow Definitions
Actions and Programming in Flow
Definitions
Examining an Action:
9. More on Spring Web Flow
The Spring Expression Language
EL Syntax
More of SpEL Expressions
EL Literals and Implicit Objects
EL Implicit Objects
Flow Control Using EL Expressions
Data Scopes
Variable Scopes
POST-REDIRECT-GET Idiom
Request vs. Flash Scope
Flow Scope
Conversation Scope, and Subflows
Session Scope
Accessing the Scopes within a Flow
Flow Language Elements
Overview of Language Elements
Overview of Action Related Elements
Overview of Other Elements
decision-state
on-* Actions
Configuring Security
10. Programming with Spring Web Flow
Creating Custom Actions
Programming Your Own Actions
The RequestContext
The ExternalContext
Using a Custom Action
Validation and Error Reporting
Validating a Model
Defining a Validator Method in the Model
Validation and ValidationContext
The MessageContext
Using Validation
Validation at Work
Defining a Validator Class
Resource Bundles
Parameterizing Error Messages
Using Subflows
Branching on Subflow End-State
Using Input/Output Variables
Using Conversation Scope
When to Use Subflows
11. Aspect Oriented Programming
Overview
The Issue with Crosscutting Concerns
Aspect Oriented Programming (AOP)
Spring AOP Introduction
Spring AOP with AspectJ Annotations
Defining an Aspect
Defining a Pointcut and Advice
Configuring Spring
Triggering Advice
Pointcut Expressions and Advice
Pointcut Expressions
Designator Patterns
Combining Pointcut Expressions
Kinds of Advice
XML Based AOP Support
Defining Aspects using XML
Specifying Advice with XML
Other Considerations
Spring Proxies and Direct Invocation
More on Spring Proxies
Issues with AOP
Is AOP Worth It?
Other AOP Capabilities and Functionality
Review and Recap
Why this stack takes more than a week of reading to absorb
The Java in this course is ordinary. The harder part is that Spring decides when your objects are created, how they are connected, and what wraps them. A wrong configuration may compile cleanly and then fail at startup, or behave oddly only when a particular call path is used. The syllabus builds up in layers.
- Wiring. Dependency injection is taught first, with setter versus constructor injection, collection and map properties, factory methods, bean definition inheritance and autowiring by type. The same wiring is then done three ways: XML metadata, annotation-driven configuration (
@Component, qualifiers, lifecycle annotations) and Java-based configuration. Each has its own pros and cons module. - Container behavior. Bean scope, creation and destruction lifecycles,
BeanPostProcessor,@PostConstruct/@PreDestroyand event handling explain what happens between configuration and a usable object. - Proxies. Declarative transactions, method security and AspectJ-style aspects all rely on proxies. The transaction material covers all seven propagation attributes (including
REQUIRES_NEW,NESTEDandMANDATORY) and rollback rules for exceptions. The AOP module closes with proxies and direct invocation, which is where many surprises come from. - Navigation state. Web Flow replaces scattered controller logic with flow definitions: states, transitions, flow variables, expression language, and request, flash, flow, conversation and session scopes. Subflows with input/output variables and custom actions are the point where it stops feeling like plain MVC.
A common misconception is that autowiring or annotations make configuration disappear. They move it, and the course weighs the trade-offs. Another is that a transaction attribute is a switch rather than a rule applied at a proxy boundary.
Who should take it, and what comes before and after
The course is introductory to Spring, but it assumes working knowledge of basic Java, JDBC and Servlets/JSP. The web modules build directly on the Java EE web application structure, and the persistence modules on JDBC and DataSource ideas. It suits developers who maintain or extend existing Spring applications, and teams that want container, persistence, transactions, security basics, MVC and Web Flow in one five-day sequence.
If a team needs only the container, the three-day Fast Track to Spring Framework 3.x covers the core without the web layers. Here, Hibernate and JPA appear as Spring integration (session factories, contextual sessions, EntityManager management), not as full ORM training. Teams that need depth on mapping and fetching can follow with Fast Track to Spring Framework 3 and Hibernate. Organizations that run newer Spring releases can look at Introduction to Spring 4, Spring MVC, and Spring REST, or ask for private training tailored to the versions they use through the training proposal form.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Modernizing XML configuration. A team might inherit an application wired entirely in XML. Using the course's coverage of component scanning, qualifiers and
@Configuration/@Beanclasses, it could decide which definitions to convert and which to leave in XML, such as aspect or transaction declarations. - A multi-step enrollment wizard. A web team might model a registration process as a flow with a start state, decision states, an end state and a subflow for address entry. Conversation scope would carry data between steps, model validation would report errors through the message context, and the POST-REDIRECT-GET idiom would prevent duplicate submissions.
- A transactional service layer with access rules. A back-end team might wrap a funds-transfer service in declarative transactions, choosing
REQUIRES_NEWfor an audit write so it survives a rollback. It could then restrict service methods with method-security annotations and check that checked exceptions trigger the rollback behavior it expects.
Using AI coding assistants with these topics
AI coding assistants are useful for the repetitive parts: a bean class with its XML or annotation configuration, a controller with form tags and a command class, a first draft of a flow definition, or a conversion from XML to Java-based configuration. They are weakest where behavior depends on the container and on the versions in use.
- Mixed idioms. Generated code often blends XML namespaces, annotations and APIs from different Spring generations. Check every import and schema against the project's actual dependencies in the POM.
- Transactions. A suggested
@Transactionalmay sit on a method that is called from within the same class, so the proxy never intercepts it. Propagation and rollback choices may also be wrong for the business rule. - Pointcuts. Expressions are frequently too broad or too narrow, so advice fires on unintended beans or never fires.
- Web Flow and security. Assistants may put data in the wrong scope, or write a security configuration that looks plausible yet leaves URLs or methods open.
To verify, start the application context and read the startup errors. Write tests that call the secured and transactional paths, including the failure cases: an unauthorized user, a thrown checked exception, a self-call. Where the question is whether advice or a transaction applied, inspect the actual bean at runtime rather than trusting the generated code.
Frequently asked questions
What level is this course, and what should I know first?
It is introductory to Spring but not to Java. You need a good working knowledge of basic Java, JDBC and Servlets/JSP, because the web, persistence and transaction modules build on them.
What does the syllabus cover?
It covers dependency injection and bean configuration in XML, annotations and Java-based configuration; the container, scopes and lifecycle; Maven basics; DAO support with Hibernate and JPA; declarative transactions; Spring MVC; a Spring Security overview with method security; Spring Web Flow; and aspect-oriented programming.
Does it teach Hibernate or JPA in depth?
No. It shows how Spring supports them (session factories, EntityManager management, DAO patterns, transactions). Mapping and query design are not the focus.
Can this be delivered privately onsite or online?
Yes. HSG delivers private training for organizations at the client's location or live online.
Can the content be customized to our versions or needs?
Private courses can be tailored to the technology versions an organization uses, including current releases, and content can be customized. You can describe your needs through the training proposal request.
Training locations
Fast Track to Spring Framework 3 .x, Spring Framework MVC and Spring Framework Web Flow training across the U.S. and beyond.
We provide private Fast Track to Spring Framework 3 .x, Spring Framework MVC and Spring Framework Web Flow training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Fast Track to Spring Framework 3 .x, Spring Framework MVC and Spring Framework Web Flow training locations
- Freiburg
- Osnabruck
- Heidelberg
- Dresden
- Essen
- Kiel
- Augsburg
- Mannheim
- Bielefeld
- Erfurt
- Hamburg
- Munich
- Potsdam
- Koblenz
- Stuttgart
- Karlsruhe
- Chemnitz
- Hannover
- Duisburg
- Berlin
- Nurnberg
- Magdeburg
- Lubeck
- Bremen
- Munster
- Bonn
- Wuppertal
- Rostock
- Wiesbaden
- Cologne
- Frankfurt
- Saarbrucken
- Braunschweig
- Dusseldorf
- Dortmund
- Furth
- Kassel
- Leipzig
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.