Skip to main content

Instructor-led training

Introduction to Spring 4, Spring MVC, and Spring REST Training in Greenwood Village, Colorado

The course starts with in-depth coverage on using the powerful capabilities of Spring's Core module to reduce coupling and increase the flexibility, ease of maintenance, and testing of your applications.

What you'll learn

The course starts with in-depth coverage on using the powerful capabilities of Spring's Core module to reduce coupling and increase the flexibility, ease of maintenance, and testing of your applications. It goes on to cover many of the most important capabilities of Spring, including integrating persistence layers (e.g. Hibernate/JPA) with Spring, using Spring's powerful Aspect Oriented Programming (AOP) to program cross-cutting concerns in a safe and maintainable way, and using Spring's declarative transaction capabilities. The course includes integration of Spring with Java EE Web applications, and an introduction to Spring MVC. Spring MVC utilizes a Model-View-Controller pattern for building Web applications, and the introduction covers the basics of Spring MVC, and how it supports organizing your Web applications in a highly structured, loosely coupled manner. This includes an introduction to REST (Representational state transfer), and how to use Spring MVC to build RESTful resources and invoke them from Ajax-based front ends.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Greenwood Village, Colorado 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

Programmers with experience in working with Java and Object - Oriented (OO) programming.

Course Outline

Session 1:  
Introduction to Spring
Overview of Spring Technology
Challenges for Modern Applications
Motivation for Spring, Spring Architecture
The Spring Framework
Spring Introduction
Managing Beans
Inversion of Control / IoC, Dependency Injection / DI
Configuration Metadata Overview, Configuring Beans (XML)
The Spring Container
Overview of the Spring Container
A Simple Spring Example
ApplicationContext Overview
ClassPathXmlApplicationContext, FileSystemXmlApplicationContext, AnnotationConfigApplicationContext
API and Usage
Dependencies and Dependency Injection (DI)
Examining Dependencies
Dependency Inversion
Dependency Injection (DI) in Spring - Basic Configuration and Usage
 
Session 2:  
Configuration in Depth
Annotation Driven Configuration
JSR 330 (@Named) and Spring (@Component) annotation styles
@Named/@Component, @Inject/@Autowired, @Repository, @Service
Configuring Beans and Autowiring with Annotations
Enabling Annotations - context:component-scan
Pros and Cons
Java Based Configuration (@Configuration)
Overview - code-centric Configuration
@Configuration and @Bean
Dependency Injection
Resolving Dependencies on Other Beans, Injecting Configuration Classes
Pros and Cons
Integrating Configuration Types
Choosing a Configuration Style
Integrating Configuration Styles
Importing: @Import and
Scanning with @Configuration style
Bean Scope and Lifecycle
Bean Scope Defined - singleton, prototype, and Other Scopes
Configuring Scope
Bean Creation Lifecycle, Lifecycle Callbacks
BeanPostProcessor, Event Handling
 
Session 3:  
Wiring in Depth
Value Injection
Configuring Value Properties, Property Conversions
Externalizing Values in Properties Files
Constructor Injection
Constructor Injection Overview
Configuration - @Configuration and XML
p: and c: namespaces for XML configuration
Qualifiers / Domain Specific Language (DSL)
Limitations of Autowiring
Qualifiers and DSL
Creating and Using an Annotation-Based DSL for Bean Configuration
Benefits of Qualifiers for Bean Configuration
Profiles
Profiles Overview
Configuring Profiles (XML and @Configuration)
Activating Profiles
Overview of SpEL
 
Session 4:  
Database Access with Spring
Overview of Spring database support
Configuring a DataSource
Using Spring with Hibernate
High Level Hibernate Overview
SessionFactory configuration, LocalSessionFactoryBean
Contextual Sessions and Spring Integration
Using Spring with JPA
Managing the EntityManager (EM)
LocalContainerEntityManagerFactoryBean and Container-managed EMs
JEE and JNDI Lookup of the EM
Configuration and Vendor Adaptors
Creating a JPA Repository/DAO Bean - @PersistenceUnit, @PersistenceContext
 
Session 5:  
Aspect Oriented Programming (AOP)
Overview of AOP
Crosscutting Concerns
AOP Basics, Aspect, Joinpoint, Advice, Pointcut
Spring AOP Introduction
Configuration - XML and @AspectJ
Defining an Aspect, Pointcut, and Advice
How Advice is Triggered
Pointcut Expressions and Advice
Pointcut Expression Overview
The execution() Designator
Other Designators (within, target, args, @target, ...)
Kinds of Advice - before, after, around, after-returning, after-throwing
Marker Annotations (Rubber Stamp AOP)
Issue with AOP Configuration
Defining an AOP Marker / Rubber Stamp
Configuring AOP Using a Marker
Advantages of Marker Annotations
@AspectJ Based AOP Support
@AspectJ Annotations Overview
Defining an Aspect, Pointcut, and Advice
Other Considerations
Spring AOP Proxies and Self-Invocation Issues
Load-Time Weaving
Caveats of AOP
 
Session 6:  
Spring Transaction (TX) Management
Intro to Spring Transaction Management
Spring Transaction Managers
Spring Declarative TX Management
Spring TX Scope and Propagation
Spring TX Attributes (REQUIRED, SUPPORTS, etc)
XML Configuration of Transactions
Specifying Advice, TX Attributes, and Methods
Linking Advice with Pointcuts
Benefits of XML Configuration of TX Behavior
 
Session 7: 
Spring Web Integration and Intro to Spring MVC
Integrating Spring with Java EE Web Apps - ContextLoaderListener and WebApplicationContext
Spring Web MVC Overview, Capabilities, Architecture (Front Controller, MVC Pattern)
Spring MVC Basics
DispatcherServlet, Configuration (@EnableWebMvc, Servlet 3 initialization), mvc Namespace
Controllers, @Controller, @RequestMapping (Handler Methods)
@RequestParam and Parameter Binding
View Resolvers
Controller Details, @RequestMapping, @RequestParam, @PathVariable
Model Data, @ModelAttribute, Model/ModelAndView Classes
 
Session 8: 
Additional Spring MVC Capabilities
Reference Data with @ModelAttribute
Forms and Binding, Spring Form Tags
Session Attributes, @SessionAttributes
Validation / JSR-303
 
Session 9: 
RESTful Services with Spring
REST Overview (Characteristics/Capabilities, URI Templates, REST vs SOAP
REST and Spring MVC
Spring support for REST
@RequestMapping/@PathVariable, @RequestBody, @ResponseBody, HTTP Method conversion
Writing RESTful Controllers
Returning XML and JSON data
Client-side Access to RESTful Services
Ajax access (Browser/JavaScript/jQuery)
Using Spring's RestTemplate
Programming Common REST Patterns
GET: Read
POST: Create
PUT: Update
DELETE: Delete
 
Session 10:  
XML Specific Configuration
Collection Valued Properties - Configuring and using lists, sets, etc.
Additional Capabilities
Factory Classes and Factory Methods
Definition Inheritance (Parent Beans)
AutoWiring with XML
Inner Beans, Compound Names
Appendix:  Maven and Spring

Why Spring's container, proxies and layered configuration take practice

Most of this course is about the framework, not the Java language. Spring takes over object creation and wiring, and then wraps some objects in proxies. Many mistakes therefore show up at container startup or at runtime rather than at compile time. The syllabus builds the layers in this order:

  • Container and wiring (sessions 1-3). IoC and dependency injection, XML metadata, annotation-driven configuration (@Component/@Named, @Autowired/@Inject, component scanning) and Java-based @Configuration/@Bean. Bean scope, lifecycle callbacks and BeanPostProcessor follow, then value injection, constructor injection, qualifiers, profiles and an overview of SpEL.
  • Persistence and cross-cutting behavior (sessions 4-6). DataSource setup, Hibernate and JPA integration, AOP with pointcut expressions and the five kinds of advice, and declarative transaction management with propagation and attributes.
  • Web and REST (sessions 7-9). ContextLoaderListener, DispatcherServlet, controllers, view resolvers, form binding, JSR-303 validation, then RESTful controllers, RestTemplate and Ajax clients.

Several misconceptions are worth knowing about up front. One is that a prototype-scoped bean injected into a singleton is created fresh on every use; it is not. Another is that an aspect applies to any method call. The syllabus lists proxy and self-invocation issues, load-time weaving and "caveats of AOP" because a call from one method to another inside the same object can bypass the advice. Transaction behavior has the same dependency on proxies, so propagation settings only make sense once AOP does. Choosing among XML, annotation and Java configuration, and combining them with @Import, is a design decision rather than a syntax exercise.

Who this course suits and what to take around it

The course is introductory with respect to Spring, but it assumes you already program in Java and understand object-oriented design. Without that background, interfaces, polymorphism and proxies are hard to follow. If you want to refresh Java first, the Java Programming courses and learning guide is the place to start.

It suits developers who build or maintain Spring-based web applications and need the full path from the container through persistence, AOP and transactions to MVC and REST. That makes it a fit for teams taking over existing XML- and annotation-configured systems. Because it covers a lot, it moves quickly. A team that needs only the container basics may prefer the shorter Introduction to Spring Framework, which is three days.

After this course, persistence is the usual area to go deeper. Here Hibernate and JPA are treated as things Spring integrates with: SessionFactory and EntityManager configuration and repository beans. Fast Track to Spring and Hibernate is a natural next step for teams that need more on the ORM side.

Organizations working on different framework or Java versions can ask for a tailored private course through a 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.

  • Swapping environments without code changes. A team might move an application between local, test and production setups. Profiles, externalized property values and a configurable DataSource keep connection details out of the code. Qualifiers decide which implementation is injected in each setting.
  • Adding audit logging across a service layer. A team might need to log every call to its service beans. An aspect with an execution() pointcut, or a marker annotation, does this without editing each class. The self-invocation and proxy caveats in the syllabus show where such an aspect would silently not run.
  • Exposing existing business logic as a JSON service. A team might have a Spring-managed service and repository layer and want a REST interface for a browser front end. @RequestMapping, @PathVariable, @RequestBody/@ResponseBody and the GET/POST/PUT/DELETE patterns map onto read, create, update and delete. Declarative transactions can keep each request's database work consistent.

Using AI coding assistants with Spring

AI coding assistants are good at boilerplate: a @Configuration class with @Bean methods, a controller skeleton, a RestTemplate call or a repository bean. They can also convert XML bean definitions to Java configuration as a starting draft.

They are weaker where behavior depends on the container at runtime:

  • Version and style mixing. Generated code may combine annotation packages, configuration styles or API generations that do not belong together. Check it against the versions your project actually uses.
  • Proxy-dependent features. An assistant may write an aspect or transactional method that looks right but is bypassed by self-invocation. Pointcut expressions are often too broad or too narrow.
  • Scope and lifecycle. Injecting a prototype bean into a singleton, or relying on callback order, compiles fine and misbehaves later.
  • Persistence. Lazy-loading and session-boundary problems are easy to generate and hard to spot by reading.
  • Security. Review request binding and input handling for injection risks.

To verify, write a test that proves the advice or transaction actually runs. Check the bean definitions the container really registered, turn on SQL and transaction logging, and exercise each REST method and its error paths. Treat generated output as a draft to be tested rather than accepted.

Frequently asked questions

What level is this course, and what do I need beforehand?

It is introductory to Spring, but it expects experience with Java and object-oriented programming. No prior Spring experience is assumed. The course starts with IoC and dependency injection.

What does the course cover?

The syllabus runs through the Spring container, XML, annotation and Java-based configuration, bean scope and lifecycle, profiles, Hibernate and JPA integration, AOP, declarative transactions, Spring MVC, forms and validation, and RESTful services with JSON/XML, Ajax clients and RestTemplate. It ends with XML-specific configuration topics and a Maven appendix.

Can the course 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?

Private courses can be customized, including to the technology versions an organization uses. Use the training proposal request to describe your stack and goals.

HSG Technology & Workforce Intelligence

Most relevant to Introduction to Spring 4, Spring MVC, and Spring REST

  • Software developers, employment: 27,010 (May 2025; U.S. Bureau of Labor Statistics)
  • Software developers, concentration relative to the U.S. (location quotient): 1.55 (May 2025; U.S. Bureau of Labor Statistics)
  • Software developers, median annual wage: $137,610 (May 2025; U.S. Bureau of Labor Statistics)
  • Computer systems design and related services, employment (private sector, by place of work): change: +32.5% (2019 annual average to 2024 annual average; calculated from U.S. Bureau of Labor Statistics)

Selected for this course from the verified data in the section below.

27,010Software developersMay 2025
1.55Concentration vs. U.S.1.00 = U.S. average; May 2025
$137,610Median annual wageU.S. $135,980; May 2025
1,640Computing graduates2023-24 academic year
5Verified local technology sourcesemployers, colleges, user groups

Key findings for Java

  • The official data measures occupations, industries and degrees, not programming languages, so it cannot count Java jobs in the Denver-Aurora-Centennial metro. In our reading, Java's typical uses (enterprise back-end systems, web services, integration middleware) fit a metro with a large software and computer systems design workforce.
  • Local Java evidence is educational and community-based. Community College of Denver, CU Denver and Metropolitan State University of Denver list Java courses in their catalogs, and the Denver Java Users Group has been meeting since November 1995. We found no employer-adoption or job-posting evidence for the area.
  • Software developers in the metro had a median annual wage of $137,610 (May 2025), compared with $135,980 for the United States, and a concentration of 1.55 relative to the U.S.
  • Colleges in the metro awarded 1,640 computing degrees and certificates in the 2023-24 academic year. This is a signal about the talent pipeline, not a promise of hiring outcomes.
  • Skills worth building include Spring Boot, REST services, automated testing and moving long-lived applications to current Java releases.

Workforce: occupations, industries and pay

These figures describe occupations, not Java use. Computer and mathematical occupations employed 86,530 people in the metro in May 2025, a concentration of 1.59 relative to the U.S. Software developers numbered 27,010, with a concentration of 1.55 and a median annual wage of $137,610, against $135,980 for software developers in the United States. Software quality assurance analysts and testers had a concentration of 1.87. That makes testing a visible companion skill for developers in this market.

Talent and education pipeline

Colleges in the metro awarded 1,640 computing degrees and certificates in the 2023-24 academic year, including 650 bachelor's and 670 master's degrees. The institutions awarding the most were the University of Colorado Denver/Anschutz Medical Campus (354), Colorado School of Mines (352) and the University of Denver (346). Graduates are a leading indicator of supply, worth watching rather than a guarantee of hiring. For working developers, the point is that newcomers arrive with solid fundamentals, and experience with frameworks, testing and delivery practices sets people apart.

Economy and technology investment

Computer systems design and related services employed 52,465 private-sector workers in 2024, up 32.5% from 2019 to 2024, with a concentration of 2.08 relative to the U.S. Software publishers had 1,101 establishments in 2024, compared with 463 in 2019. In our reading, this kind of consulting and software activity creates steady need for maintainable back-end code and for people who can modernize existing systems. Federal contract obligations for the metro's counties were $10.5 billion in FY2025, compared with $7.4 billion in FY2021. This is a signal worth watching, not a statement about any language.

How Denver compares

AreaBachelor's or higher (ACS 2020-2024 5-year)Computing degrees (share of bachelor's holders) (ACS 2020-2024 5-year)Computer and math jobs, LQ (May 2025)Software developers, LQ (May 2025)Software developers, median wage (May 2025)
Denver-Aurora-Centennial, CO49.4%5.3%1.591.55$137,610
United States35.7%5.1%1.001.00$135,980
Colorado45.7%5.4%1.401.39$138,390
Nashville-Davidson--Murfreesboro--Franklin, TN40.9%4.3%0.920.65$126,610
Las Vegas-Henderson-North Las Vegas, NV27.8%4.6%0.550.23$129,940
Orlando-Kissimmee-Sanford, FL36.7%4.7%0.930.88$129,620
Charlotte-Concord-Gastonia, NC-SC39.9%5.7%1.351.41$135,920
San Antonio-New Braunfels, TX32.3%5.0%0.850.65$128,430

LQ (location quotient) compares the share of jobs in an occupation or industry with the national share; 1.00 equals the U.S. average.

Each column uses one period for every area; "not published" means the publisher released no estimate, not zero.

Skills and technology fit

This part is HSG's interpretation of the data above for people learning Java. The official sources measure occupations, industries and degrees, not programming languages.

Why Java fits this regional economy. In our reading, the metro's mix of software developers, computer systems design firms and software publishers suits Java's usual territory: back-end services, integration layers and long-lived business applications. Information security analysts (concentration 1.81) and computer network architects (concentration 5.51) also exceed the national level in May 2025. That suggests secure, well-integrated services matter in local work. The data does not show which employers use Java.

Evidence of Java in the area. Three institutions list Java in their catalogs. Community College of Denver offers CSC 2040 Java Programming as an introduction to the language. CU Denver lists CSCI 4501 Java and an advanced course that pairs Java with Python. Metropolitan State University of Denver uses Java in CIS 3145 to build object-oriented business applications. These show that Java is taught locally, not that employers adopt it. On the community side, the Denver Java Users Group is a free, volunteer-run group that has met since November 1995. Its Meetup page listed an event on real-time data architectures with Apache Kafka and RabbitMQ. No job-posting or employer-adoption evidence was found for the area.

Frameworks and skills worth investigating. Technology context points to Spring Boot, Jakarta EE (Servlets, JPA, JAX-RS), Hibernate, Maven or Gradle, and JUnit. Start with the official dev.java learning pages, then add Spring training if your work involves services and integration. Long-lived applications also raise the practical challenges of upgrading across Java versions, tuning performance and securing web applications.

Emerging areas worth watching. The six-month release cadence with regular LTS releases, records, pattern matching and virtual threads are worth following, as are the Spring Boot and Jakarta EE namespace migrations. The Kafka-focused local meetup suggests streaming data is another topic worth investigating alongside the language.

Improving your prospects. Build in layers. Cover fundamentals and collections, then concurrency and database access, then a web framework, with testing throughout. Given the local concentration of testers and security analysts, show that you can write tested, secure code and modernize older applications. The Java learning guide lays out the path.

HSG courses for these skills. Fast Track to Java 25 and OO Development covers the Java release cycle, the JDK and object-oriented basics. Advanced Java Programming adds serialization and java.nio buffers and channels. Developing RESTful Services Using Java teaches JAX-RS, HATEOAS and the Richardson Maturity Model. Express JUnit covers assert methods, test suites and runners. Continuous Integration with Jenkins teaches automated test execution. Administering the WildFly 11/12 and JBoss EAP 7.1 Application Servers covers Java EE architecture, installation and server structure. For a team plan, request a training proposal.

About this data: sources, periods and limitations
  • Values are by the area each publisher reports (metropolitan area, county or state), retrieved from the publishers and checked by HSG.
  • Leading indicators, such as graduates and federal funding, are signals of possible future activity. They do not guarantee employment.
  • Computer and mathematical occupations, information security analysts, computer network architects and others: Survey-based estimate for the May reference period (3-year sample). Covers wage and salary workers; excludes the self-employed.
  • Software developers: Survey-based estimate for the May reference period (3-year sample). Annual median wage is capped at the published top code. Covers wage and salary workers; excludes the self-employed.
  • Software publishers: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 5132 (NAICS). Employment and wages are withheld by BLS for this area and year to protect employer confidentiality; the establishment count is published.
  • Computer systems design and related services: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 5415 (NAICS).
  • Computer systems design and related services: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 5415 (NAICS). Location quotient relative to the U.S.
  • Computing, institutions awarding the most computing degrees: Awards conferred July 1, 2023 to June 30, 2024, first major only, by institution location (not graduates' residence). Primarily online institutions (data.ipeds.onlineInstitutions) count in the national total only.
  • Federal contracts obligations, by place of performance: Federal obligations (commitments), not outlays, by place of performance; a single large award can dominate a small area; amounts are revised as agencies report.
  • Organizations' own pages: An organization's own statement, checked by HSG; it shows that the organization uses, hires for or teaches the technology, not how widely.

Training locations

Introduction to Spring 4, Spring MVC, and Spring REST training across the U.S. and beyond.

We provide private Introduction to Spring 4, Spring MVC, and Spring REST training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Introduction to Spring 4, Spring MVC, and Spring 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
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.