Core Spring

Course Code: SPRINGC

Duration: 5 days

 
 
 
 

Core Spring Course Overview

Spring is the leading Java framework for building enterprise software.

This course comprises sessions dealing with Inversion of Control (IoC), Dependency Injection (DI), Container configuration, Aspect Oriented Programming (AOP), testing, transaction management, Spring Boot, Spring Data JPA, Spring Web MVC, REST APIs, Spring Security, and the Actuator.

It is delivered using Spring v6 and Spring Boot v3 (Java v17) though the vast majority of the content is applicable to earlier versions and the trainer will point out the differences.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Course Objectives

This course aims to provide the delegate with the knowledge to be able to develop (or contribute to the development of) secure Spring web applications/REST APIs that read from and write to persistent storage.

Who will the Course Benefit?

The Core Spring course will benefit Java developers who are new to Spring and want to develop/contribute large and complex enterprise-level applications.

Skills Gained

The delegate will learn and acquire skills as follows:

  • Spring-ify an application and have the container instantiate components
  • Provide the necessary metadata to have the container inject dependencies automatically
  • Configure the container with regards bean lifecycle and scope, profiles, and properties
  • Describe AOP and its role in a Spring application
  • Write integration tests for a Spring application's components
  • Exploit Spring's transaction abstraction
  • Exploit auto-configuration with Spring Boot
  • Manage the persistence of entity objects using Spring Data JPA
  • Build a traditional web application using Spring Web MVC
  • Build a REST API using Spring Web MVC
  • Secure a web application with Spring Security
  • Monitor and monitor a Spring web application/REST API with the Spring Boot Actuator

Core Spring Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: INTRODUCTION TO SPRING & IOC

  • About Spring
  • Inversion of Control
  • The Spring IoC Container
  • Spring Beans
  • Configuring the container
  • Instantiating the container and obtaining beans

Session 2: ANNOTATION-BASED CONTAINER CONFIG. & DI

  • Classpath scanning and managed components
  • Stereotype annotations
  • Dependency Injection
  • Autowiring
  • Handling multiple candidate dependencies
  • Java configuration vs. annotations, and mixing

Session 3: MORE CONTAINER CONFIG.

  • Bean lifecycle and post processors
  • Acting on a bean's lifecycle events
  • Specifying the scope of a bean
  • Composing configurations
  • Grouping beans into profiles
  • Externalising properties
  • Environment abstraction
  • Spring Expression Language

Core Spring Training Course

Session 4: AOP

  • About AOP and proxying
  • Constructing pointcut expressions
  • Advising the target object

Session 5: TESTING

  • Spring integration testing with JUnit
  • Loading and configuring the container
  • Setting the active profile(s) and property source(s)

Session 6: TRANSACTION MANAGEMENT

  • Spring's transaction abstraction
  • Configuring the data source and transaction manager
  • Transaction configuration, e.g. propagation and rollback rules
  • Declarative transaction management
  • Programmatic transaction management
  • Choosing between the approaches

Core Spring Training Course

Session 7: ACCESSING DATA & JDBC

  • Exception translation
  • Implementing a DAO using JdbcTemplate
  • Using callbacks to handle results
  • Managing data access exceptions

Session 8: MINIMISING CONFIG. WITH SPRING BOOT

  • Spring Boot: what and why
  • Starter dependencies
  • Auto-configuration
  • Spring Boot annotations
  • Creating a simple Spring Boot application
  • Configuration properties
  • Executing code on startup using CommandLineRunner
  • Testing in Spring Boot

Session 9: DATA PERSISTENCE WITH SPRING DATA JPA

  • Creating a Spring JPA app with Spring Boot
  • ORM, JPA, and Hibernate
  • Entity mapping
  • Spring Data repositories
  • Persisting entities
  • Writing query methods
  • Transactionality
  • Testing a Spring JPA app including @DataJpaTest

Core Spring Training Course

Session 10: WEB APPS WITH SPRING WEB MVC

  • Creating a Spring MVC app with Spring Boot
  • The request processing lifecycle
  • Building a controller
  • Handler method parameters
  • View templates
  • Testing a Spring MVC app including @WebMvcTest
  • Configuring a Spring MVC app for deployment

Session 11: REST APIS WITH SPRING WEB MVC

  • About REST APIs
  • @ResponseBody, message conversion, and @RestController
  • @RequestBody and validation
  • @ResponseStatus and exception handling
  • Testing a REST API including @WebMvcTest
  • Using RestTemplate to invoke REST services

Core Spring Training Course

Session 12: SECURING AN APP WITH SPRING SECURITY

  • The big picture
  • Architecture components
  • Configuring custom authentication
  • Configuring authorisation for access to endpoints
  • Configuring authorisation at the method level
  • Configuring Spring Security

Session 13: SPRING BOOT ACTUATOR

  • About the Actuator
  • Exposing endpoints
  • Writing custom endpoints
  • Dealing with metrics
  • Health indicators
  • Writing custom health indicators
  • Monitoring and management over HTTP & JMX
Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Examinations

This Core Spring course is an excellent choice for delegates preparing to take the following exam:

  • Spring Professional Develop (2V0-72.22)

Attending this course and studying the associated reference materials can form part of the preparation to achieve certification. Experience, practice, self-study, and aptitude are also key requirements for exam success.

Before taking any exam, ensure you have the recommended experience. VMware specify that a Minimally Qualified Candidate (MQC) is recommended to have at least 6-12 months of experience.

NB: At the time of writing VMware stipulates specific ‘training course requirements’ as prerequisites for sitting the exam. Please refer to the VMware website for the courses that apply.

Exams are not included as part of the course.

Requirements

Delegates attending this course should be competent Java developers who have a good understanding of OO principles and are able to build simple applications that exploit APIs including Collections, IO, and JDBC. Delegates would also benefit from having some previous experience with Servlet programming. This knowledge can be obtained by attendance on the pre-requisite Java Programming 1 / Java Developer course.

Pre-Requisite Courses

Public Scheduled Events

Classroom & Live Virtual Instructor-Led Training

Duration: 5 days

Price: £2,750.00 exc. VAT 


Start Date Options Spaces  
03 Mar 2025
StayAhead Virtual Courses available 
Spaces Book Now 
12 May 2025
StayAhead Virtual Courses available 
Spaces Book Now 
28 Jul 2025
StayAhead Virtual Courses available 
Spaces Book Now 
22 Sep 2025
StayAhead Virtual Courses available 
Spaces Book Now 
10 Nov 2025
StayAhead Virtual Courses available 
Spaces Book Now 
 

Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Customers Include

 
EDF
Amazon
American Express
Aviva
QA
BAE
University of Cambridge
Barnardo's
Scottish Government
Bauer
Bloomberg
BP
HSBC
DVLA
GlaxoSmithKline
Government Campus
Capita
Tui
NHS
Ordnance Survey
Ministry of Defence
Zurich Insurance Group
trainline
Vodafone
 
 



Our Course Curriculum

 
 
 
+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2024 StayAhead Training Ltd
Cookies   /   Privacy Policy