Skip to main content

Instructor-led training

Fast Track to Spring Framework 3.x Training in Temple City, California

This 3 - day course is current with Spring 3.2, as well as earlier versions.

What you'll learn

This 3 - day course is current with Spring 3.2, as well as earlier versions. It includes complete coverage of the annotation based approach to configuration, as well as coverage of the traditional XML - based configuration that can still play an important role in existing and new projects. The course starts with the basics of Spring and in - depth coverage on using the powerful capabilities of the Core module to reduce coupling and increase the flexibility, ease of maintenance, and testing of your applicati ons. It goes on to cover many of the most important capabilities of Spring 3, including using Spring to simplify the creation of a persistence layer with persistence frameworks like Hibernate and JPA. It includes coverage of advanced capabilities such as u sing Spring's Aspect Oriented Programming (AOP) to program cross - cutting concerns such as transactions and security. The course includes integration of Spring with Java EE Web applications, and an introduction to Spring Security v3, its architecture, and how to use it to secure both Web application requests and bean invocations .

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Temple City, California 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 Training

Prerequisites

A good working knowledge of basic Java, JDBC, and Servlets/JSP.

Course Outline

Session 1:  
Introduction
Overview of Spring Technology
Shortcomings of Java EE, Spring Architecture
Spring Introduction
Managing Beans, The Spring Container, IoC, DI
Configuration Metadata - XML, @Component, Auto-Detecting Beans
Dependencies and Dependency Injection (DI)
Dependency Inversion, Dependency Injection (DI) in Spring, DI Configuration - XML, @Resource
 
Session 2:  
More about Bean Properties
Working with Properties
Configuring Value Properties, Property Conversions, Setter / Constructor Injection
Spring Expression Language for Configuration
Collection Valued Properties
Configuring and using lists, sets, etc.
Additional Capabilities
Factory Methods, Bean Aliases, Definition Inheritance (Parent Beans)
 
Session 3: 
The Spring Container and API
ApplicationContext
ClassPathXmlApplicationContext, FileSystemXmlApplicationContext, Constructors, Usage
Resource Access - Overview, Resource Implementations
Bean Scope and Lifecycle
Bean Scope Defined, Configuring, Inner Beans, Bean Creation Lifecycle, Lifecycle Callbacks, BeanPostProcessor, Event Handling
Annotation Driven Configuration
Stereotypes: @Component, @Service, @Controller, @Repository
Java EE 5 Annotation Support
Defining Custom Annotations
Autowiring
@Autowired on setters, constructers, methods, fields
Injecting resources like ApplicationContext
Fine tuning with @Qualifier
Java Based Bean Metadata (JavaConfig)
Overview - code-centric Configuration
@Confguration, @Bean, and @Value
Importing and @Import
Autowiring in Configuration Classes
Mixing XML Configuration and @Configuration
XML vs Annotation Based Configuration
 
Session 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, LocalContainerEntityManagerFactoryBean, JNDI, PersistenceUnitManager
DAO Support - @PersistenceUnit, @PersistenceContext
 
Session 5:  
Spring Transaction (TX) Management
Intro to Spring Transaction Management
Overview, Component TX Model, TX Propagation, Declarative Transactions, TransactionManagers
Using Spring Transactions
Annotation Configured Transactions
@Transactional and its settings
Proxy-based implementation issues
Load-time Weaving
XML Configured Transactions
<tx:*> elements, Configuring tx:advice, and tx:attributes
Defining the TX advisor
 
Session 6:  
Introduction to Spring Web Integration
Integrating Spring with Java EE Web Apps
ContextLoaderListener
WebApplicationContext
Using Spring beans in Wep app controller logic
 
Session 7:  
Overview of Spring Security
Overview - Capabilities, Architecture
Introduction to Spring Security
HTTP Security
Method Security
Annotation-Based Security
Expression-Based Access Control
Authentication Providers
 
[Optional] Session 8:  
Aspect Oriented Programming (AOP)
Overview of AOP
AOP Basics, Aspect, Joinpoint, Advice, Pointcut
Introduction to Spring AOP
Capabilities, Configuration (Annotation Based and XML), Weaving, Joinpoints
Using Aspects
Defining Advice, Configuring Pointcuts, Targets and Proxies
XML Configuration with <aop:>
AspectJ Pointcuts, Autoproxies
Using @AspectJ Annotations
@AspectJ Annotations, Declaring Advice

What makes the Spring 3.x material hard to master

The difficulty is mostly indirection. Once a container creates, wires and wraps your objects, a mistake in metadata shows up as a startup failure or as behavior you never wrote. The syllabus builds the layers in a deliberate order.

  • Container and configuration (sessions 1-3). IoC and DI come first, then configuration metadata in XML and with @Component, @Resource and @Autowired. Later topics are property conversion, Spring Expression Language, collection properties, factory methods and parent-bean definition inheritance. Bean scope, lifecycle callbacks and BeanPostProcessor follow, then @Qualifier, @Configuration/@Bean JavaConfig, and mixing XML with annotations. A common misconception is that one style replaces the other. The syllabus ends the container material with an XML-versus-annotation comparison because real projects often use both.
  • Persistence (session 4). Configuring a DataSource, Hibernate SessionFactory and contextual sessions, and JPA through LocalEntityManagerFactoryBean or LocalContainerEntityManagerFactoryBean. Learners often assume Spring hides the persistence framework. It only manages how the framework is created and obtained.
  • Transactions (session 5). Propagation, transaction managers, @Transactional settings and <tx:advice>. The syllabus lists proxy-based implementation issues and load-time weaving. These explain why an annotation can appear to do nothing.
  • Web integration and security (sessions 6-7). ContextLoaderListener, WebApplicationContext, HTTP security, method security, expression-based access control and authentication providers.
  • AOP (optional session 8). Aspects, join points, advice, pointcuts, proxies and @AspectJ. It makes the proxy behavior from the transaction session easier to reason about.

Who this course suits and what to take next

The course is introductory to Spring but assumes working knowledge of core Java, JDBC and Servlets/JSP. It suits developers and teams who build, maintain or migrate applications on Spring 3.x, including projects that still carry XML configuration alongside annotations. It is also useful for developers who inherit such a codebase and need to read it confidently.

Spring MVC is not in this syllabus; web coverage is limited to integrating the container with a Java EE web application. For web-layer work, Fast Track to Spring Framework 3.x and Spring Framework MVC/REST is a natural continuation because it builds on the container and configuration skills taught here. Teams working on newer Spring releases may find Introduction to the Spring 4 Framework a better match. Organizations can also ask for a tailored private training proposal aligned to the versions they run. More Java options are in the Java Programming courses and learning guide.

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.

  • Untangling a legacy XML configuration. A team might inherit an application with large XML bean files. The container, stereotype and autowiring topics show how to move parts to @Component and @Autowired. @Qualifier resolves ambiguous matches, and the XML-versus-annotation discussion helps decide what to leave alone.
  • Making transaction boundaries explicit. A team might replace hand-written commit/rollback code in a JDBC- or Hibernate-based service layer with @Transactional. Propagation settings, transaction managers and proxy limitations explain what the annotation does and when it is bypassed.
  • Restricting access at the method level. A team might need rules beyond URL patterns, such as limiting who can call a service method. Method security, annotation-based security and expression-based access control cover that, alongside HTTP security and authentication providers.

AI coding assistants with Spring 3.x topics

AI coding assistants can draft @Configuration classes, DAO skeletons and repetitive bean definitions, and can explain an unfamiliar XML file. They tend to fail in version-specific ways.

  • Version drift. Suggestions often assume a newer Spring or Java EE namespace, or newer configuration idioms, than a Spring 3.x project provides. Check every import, XML schema reference and annotation against the project's actual dependencies.
  • Proxy behavior. A generated @Transactional method may compile and look correct yet not run in a transaction. This happens, for example, when it is called from within the same class, which is the kind of proxy issue the syllabus covers. Verify with transaction logging or a test that forces a rollback.
  • Wiring ambiguity. Assistants may add @Autowired where several candidate beans exist and omit @Qualifier. The failure appears only at startup.
  • Security rules. Generated access expressions or authentication setup can be too permissive. Test both allowed and denied cases for each protected URL and method.

Treat assistant output as a draft. Start the container, exercise the paths that matter, and review it with the same care as any other change.

Frequently asked questions

What level is this course?

It is introductory to Spring, but it expects working Java knowledge. The listed prerequisites are basic Java, JDBC and Servlets/JSP.

What does the course cover?

The syllabus covers the Spring container, IoC and DI, XML, annotation and JavaConfig configuration, bean scope and lifecycle, database access with Hibernate and JPA, transaction management, integration with Java EE web applications, and an overview of Spring Security. An optional session covers Spring AOP.

Does it cover Spring MVC?

No. The web portion is limited to integrating Spring with Java EE web applications (ContextLoaderListener and WebApplicationContext). The related MVC/REST course covers the web layer.

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?

Private training can be customized, including tailoring to the versions an organization uses. Use the training proposal request to describe your needs.

Training locations

Fast Track to Spring Framework 3.x training across the U.S. and beyond.

We provide private Fast Track to Spring Framework 3.x 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 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
Request Group Training

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.