Instructor-led training
Fast Track to Spring Framework 3.x and Spring Framework MVC/REST Training in Collinsville, Illinois
This 5 day course is current with Spring 3.2, as well as earlier versions.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Collinsville, Illinois 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
Configuration Metadata
Declaring Beans
The Spring Container
Why Bother?
Dependencies and Dependency Injection
Dependencies between Objects
Dependency Inversion Principle
Advantages of Dependency Injection
Dependency Injection Reduces Coupling
2. More about Bean Properties
Working with Properties
Using Value Based Properties
Property Conversions
Constructor Injection
Constructor Argument
Resolution
Collection Valued Properties
Configuring and
Properties
Configuring Collection of Bean
References
Map Valued Properties
Additional Capabilities
Factory methods, Bean Aliases,
Definition Inheritance
Autowiring
3. The Spring Container and API
Application Context
Resource Access – Overview,
Resource
Implementations
Bean Scope and Lifecycle
Annotation Driven Configuration
Enabling Spring Annotations
Complete Declarations Using
Annotations
XML Config for Annotations and
Scanning
Qualifiers
Lifecycle Annotations
Java - based Configurations
Dependencies Between Configuration
Classes
Classpath Scanning
Other @Bean Capabilities
Maven and Spring
How We will work with Maven
The POM
Repositories
Eclipse/Maven Integrations
4. Database Access with Spring
Overview of Spring database support
Configuring a DataSource
Using Spring with Hibernate
SessionFactory configuration
Using Contextual Sessions
Using Spring with JPA
LocalEntityManagerFactoryBean
JEE: Obtaining an EntityManager from
JNDI
Extended Persistence Context
5. Transactions
Intro to Spring Transaction Management
JTA Transaction Manager
Spring Transactional Scope
Using Spring Transactions
Transaction Attributes for Propagation
Rolling Back and Exceptions
Spring's Load - Time Weaving
6. Web Applications with Spring MVC
Integrating Spring with Java EE Web
Apps, ContextLoaderListener,
WebApplicationContext
Spring Web MVC Overview,
Capabilities, Architecture
Spring MVC Basics
DispatcherServlet, Configuration, MVC
Controllers
Returning Model Data
The JSP Pages
Forms and Command Objects
A JavaBean Command Class
7. Spring Security Overview
Overview - Capabilities,
Architecture
Introduction to Spring Security
HTTP Security
Method Security
Annotation - Based Security
Expression - Based Access
Control
Authentication Providers
8. RESTful Services with Spring
REST Overview
Characteristics and Capabilities
URI Templates
REST vs SOAP
REST and Spring MVC
Spring support for REST
Writing RESTful Controllers
Returning XML and JSON data
Client - side Access to RESTful
Services
Client Requirements and RestTemplate
Using RestTemplate
Accessing Header Info
Common REST Patterns
9. Aspect Oriented Programming
(AOP) (optional)
Overview of AOP
Introduction to Spring AOP
Pointcut Expressions and Advice
XML Based AOP Support
Defining Aspects Using XML
Spring Proxies and Direct
Invocation
Is AOP Worth It?
Other AOP Capabilities and
Functionality
What makes this material hard to master
The Java in this course is ordinary. What takes practice is that the container now decides when objects exist, what they are wired to, and what wraps them. A misconfigured bean often fails only at startup or at the first request, so you debug configuration as much as code.
The syllabus builds in layers:
- Wiring. Configuration metadata, dependency injection, constructor argument resolution, collection and map properties, autowiring, and bean scope and lifecycle. The Dependency Inversion Principle is covered before the mechanics, so the reasons come first.
- Three configuration styles. XML, annotation-driven configuration (qualifiers, classpath scanning, lifecycle annotations) and Java-based configuration with dependencies between configuration classes. A common misconception is that one style replaces the others. Existing codebases often mix them, and you need to read all three.
- Persistence and transactions. DataSource setup, Hibernate SessionFactory and contextual sessions, JPA entity manager options, then transaction attributes for propagation and rollback rules. Many developers assume any exception rolls a transaction back. The rollback-and-exceptions topic exists to correct that.
- Web, security and REST. ContextLoaderListener, WebApplicationContext, DispatcherServlet, controllers and command objects, then HTTP and method security, then RESTful controllers, XML/JSON responses and RestTemplate.
- Proxies. The optional AOP module covers pointcuts, advice and the difference between proxies and direct invocation. It explains why some annotations silently do nothing in certain call paths.
Who it suits and what to take around it
The course is labeled introductory to Spring, but it assumes a good working knowledge of Java, interfaces and JDBC. It suits developers and technical leads who build, maintain or extend Spring applications on the 3.x line, and teams that need container, persistence, MVC, security and REST skills in one five-day sequence. Developers who are still building Java fundamentals will find it fast. The Java Programming courses and learning guide can help you plan that groundwork.
For next steps:
- The syllabus covers how Spring configures Hibernate and JPA, not ORM design itself. Fast Track to Spring Framework 3 and Hibernate is the natural follow-up for teams whose main work is the persistence layer.
- Organizations moving to a later Spring generation can look at Introduction to Spring 4, Spring MVC, and Spring REST. It covers the same MVC and REST ground on a newer release line.
Teams on other versions can ask about a customized private training proposal.
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.
- Maintaining a mixed-configuration system. A team might inherit an application with XML bean definitions and newer annotated classes. Knowing XML configuration for annotations, component scanning, qualifiers and Java-based configuration lets them find where a bean is defined and why an autowiring ambiguity occurs.
- Fixing inconsistent data updates. For example, a service method updates two tables through Hibernate, and a failure leaves partial changes. Transaction attributes, propagation settings and rollback rules on exceptions point to the cause, and the JTA transaction manager topic applies if more than one resource is involved.
- Exposing existing logic as a service. A team might publish an internal service to other applications as JSON. They would write RESTful controllers with URI templates, return XML or JSON, and test clients with RestTemplate. Method security and expression-based access control can restrict who calls what.
AI coding assistants with these topics
AI coding assistants are useful for scaffolding: a controller skeleton, a configuration class, a RestTemplate call or a first draft of unit tests. They can also explain an unfamiliar XML bean definition.
They tend to fail where this course concentrates:
- Version mixing. Suggestions may combine annotations, classes or configuration styles from different Spring generations, or assume features this codebase does not have. Check every suggestion against the Spring and Java versions the project actually uses.
- Transactions and proxies. Generated code may put a transactional annotation where proxy-based advice never applies, such as a call within the same class. It may also assume the default rollback behavior covers every exception.
- Security rules. Generated HTTP or method security configuration can look plausible while leaving a path open or the rules in the wrong order.
- Wiring. Autowiring suggestions can create ambiguity that only shows up when the container starts.
To verify, start the application context and read the failures. Write tests that exercise rollback and access-denied paths, and review security rules by hand. Confirm that REST responses have the expected status codes and content types.
Frequently asked questions
What level is this course, and what should I know first?
It is introductory to Spring but expects a good working knowledge of Java, interfaces and JDBC. No prior Spring experience is assumed.
What does the course cover?
Dependency injection and the Spring container, XML, annotation and Java-based configuration, Maven basics, database access with Hibernate and JPA, transactions, Spring MVC, a Spring Security overview, and RESTful services with RestTemplate. AOP is included as an optional module.
Does it teach Hibernate or JPA in depth?
No. It covers how Spring configures and integrates them: DataSource, SessionFactory, contextual sessions and entity manager options. Mapping and query design are not the focus.
Can this be delivered privately for our team, 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 Spring or Java versions?
Private courses can be tailored to the technology versions an organization uses, including current releases. Use the training proposal request to describe your environment.
Training locations
Fast Track to Spring Framework 3.x and Spring Framework MVC/REST training across the U.S. and beyond.
We provide private Fast Track to Spring Framework 3.x and Spring Framework MVC/REST 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 and Spring Framework MVC/REST training locations
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.