Instructor-led training
Introduction to Spring Framework Framework Training in Alamo, Texas
This 3-day course introduces the Spring Framework, the leading full - stack framework for Java EE applications.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Alamo, Texas 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
What is Spring?
Overview of the Spring Framework
Spring Philosophies
Spring Documentation
Java 5 Language Features
2. A First Look at Spring
A Simple Example
Wiring Beans
Configuring a Properties File
Schema-Based Configuration
3. Beans and Containers
Spring Containers
Spring Configuration File
Spring Beans
Using the Container
The BeanFactory Interface
Singleton vs. Prototype
Bean Naming
Dependency Injection
Setter Injection
Constructor Injection
4. The Application Context
The ApplicationContext Interface
Accessing Application Components
Accessing Resources
Internationalization with MessageSource
Application Events
5. Data Validation and Conversion
The Validator Interface
The Errors Interface
The ValidationUtils Class
Validator Example
Testing the Validator
Property Editors
Custom Property Editors
6. Aspect-Oriented Programming
Aspect-Oriented Programming
AOP Concepts
AOP Proxies
The AOP Alliance
Types of Advice
AOP Example
Introductions
7. Using JDBC with Spring
A Simpler Approach
The JdbcTemplate Class
Exception Translation
Updating with the JdbcTemplate
Queries using the JdbcTemplate
Mapping Results to Java Objects
8. Using Hibernate with Spring
What is Hibernate?
Hibernate Sessions
The HibernateTemplate
Sample Class and Mapping File
Creating and Saving a New Entity
Locating an Existing Entity
Updating an Existing Entity
Introduction to Spring Framework
Hibernate Query Language
Executing Queries
9. Spring Web MVC–Part 1
Spring Web MVC
The DispatcherServlet
Writing a Controller
A Simple View Page
Configuring the Controller
Adding a View Resolver
Adding a Message Bundle
Adding Business Classes
Adding Test Data
Accessing a Database
Adding a Form
Updating the Database
Integrating Hibernate
10. Spring Web MVC–Part 2
Handler Mappings
View Resolution
Chaining View Resolvers
Contro
llers
AbstractWizardFormController
Appendix A: Resources
What makes Spring hard to master
The Java is rarely the obstacle. The difficulty is that Spring moves control out of your code: the container creates, wires and proxies objects, so many mistakes only appear at startup or at runtime. The syllabus builds up in layers.
- Container and injection (sections 1-4). Wiring beans, schema-based configuration, setter versus constructor injection, bean naming, and singleton versus prototype. The course compares the BeanFactory and ApplicationContext interfaces. The latter adds resource access, internationalization with MessageSource and application events. A common misconception is that these are interchangeable. Another is that a singleton bean is safe to hold per-request state, when it is shared.
- Validation and conversion (section 5). The Validator, Errors and ValidationUtils types, plus custom property editors. Later web forms depend on these.
- Aspect-oriented programming (section 6). AOP concepts, proxies, the AOP Alliance, types of advice and introductions. Advice is applied through proxies, so it only runs on calls that pass through the proxy. That surprises people who expect it to affect every method call.
- Data access (sections 7-8). JdbcTemplate with exception translation and result mapping, then Hibernate sessions and HibernateTemplate. Learners must see which layer owns the session and how persistence errors surface.
- Web MVC (sections 9-10). DispatcherServlet, controllers, handler mappings, view resolvers and chained resolution, and AbstractWizardFormController. Everything above comes together here.
The syllabus also opens with a review of Java 5 language features, and the course materials reference Java SE 7 and earlier, which Oracle lists as out of support. The course suits organizations that maintain and support systems built in this style.
Who it suits and what comes before and after
This is an introductory course, but it assumes strong Java skills and some exposure to Java EE technology. It suits developers and technical leads who build, maintain or migrate container-managed, XML-configured Java applications. Learners without that Java background should start with the Java Programming courses and learning guide.
Because the course covers JDBC, Hibernate and Spring Web MVC in three days, it introduces each area rather than treating any of them in depth. Teams whose projects use a later Spring release can continue with Introduction to the Spring 4 Framework (The Next Generation). For web and REST work on that release, Introduction to Spring 4, Spring MVC, and Spring REST is the natural step.
Organizations on other Java or framework versions can ask for private training tailored to the versions they run, through a training proposal request.
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 data-access layer. A team might inherit hand-written JDBC code with repeated connection handling. The JdbcTemplate sections cover query and update calls, result mapping and exception translation, which would let them see how that boilerplate shrinks.
- Adding cross-cutting behavior. A team might need to log or time calls across service classes without editing each one. The AOP sections on advice types, proxies and introductions show how that can be declared separately from business code.
- Building a form-driven page. A team might maintain a multi-step web form. Spring Web MVC with a Validator, a message bundle, view resolvers and AbstractWizardFormController shows how validation, messages and page flow fit together.
AI coding assistants with these topics
AI coding assistants can draft bean definitions, scaffold controllers and validators, explain stack traces, and suggest unit tests for a Validator or a JdbcTemplate query. They help most with repetitive wiring and boilerplate.
They tend to fail where Spring's version and configuration style matter. Generated code often mixes configuration styles or assumes a different Spring or Java version than the project uses. It may also reach for APIs that differ from the template-based and XML-driven approach in this syllabus. Assistants also tend to miss proxy behavior (advice that never fires because a call bypasses the proxy), shared state in singleton beans, and Hibernate session and transaction boundaries.
To verify, check every suggestion against your project's Java and framework versions. Start the container and confirm beans wire as intended. Write tests that prove advice runs and validators reject bad input. Inspect the SQL that actually executes, and review for injection risks in any query code.
Frequently asked questions
What level is this course and what should I know first?
It is introductory to Spring but assumes strong Java programming skills and some exposure to Java EE technology.
What does the course cover?
The Spring container and dependency injection, the ApplicationContext, data validation and property editors, aspect-oriented programming, JdbcTemplate, Hibernate with HibernateTemplate, and Spring Web MVC including handler mappings, view resolution and wizard form controllers.
Can the course 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 Java or Spring versions?
Private training can be tailored to the technology versions an organization uses, including current releases. Submit a training proposal request to discuss your environment.
Training locations
Introduction to Spring Framework Framework training across the U.S. and beyond.
We provide private Introduction to Spring Framework Framework training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Introduction to Spring Framework Framework 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.