651-905-3729 Microsoft Silver Learning Partner EC Counsel Reseller compTIA Authorized Partner

Spring: Core Training

4 Days

Description

This course prepares students for the Spring Professional certification exam. The Spring framework is an open-source framework for building enterprise Java applications. Spring makes programming Java quicker, easier, and safer for everybody. Spring’s focus on speed, simplicity, and productivity has made it the world's most popular Java framework. Spring tackles common application problems to make the process of building applications easier. Spring provides patterns and structure for your Java application and handles most of the things that developers need to do when they build a Java application. The Spring framework comes with various different data access APIs and mechanisms for connectivity, querying, and transaction management for working with databases in Java. It allows you to continue to work with JDBC but makes that difficult experience much easier.

Spring’s flexible and comprehensive set of extensions and third-party libraries let developers build almost any application imaginable. At its core, Spring framework’s Inversion of Control (IoC) and Dependency Injection (DI) features provide the foundation for a wide-ranging set of features and functionality. Whether you’re building secure, reactive, cloud-based microservices for the web or complex streaming data flows for the enterprise, Spring has the tools to help.

Spring Boot transforms how you approach Java programming tasks by streamlining your experience. Spring Boot combines necessities such as an application context and an auto-configured, embedded web server to simplify microservice development.

This 4-day course offers hands-on experience with the major features of Spring and Spring Boot, which includes configuration, data access, REST, AOP, auto-configuration, actuator, security, and Spring testing framework to build enterprise and microservices applications. On completion, participants will have a foundation for creating enterprise and cloud-ready applications.

  • This course prepares students for the Spring Professional certification exam.

Objectives

  • Spring configuration using Java Configuration and Annotations
  • Aspect oriented programming with Spring
  • Testing Spring applications using JUnit 5
  • Spring Data Access - JDBC, JPA and Spring Data
  • Spring Transaction Management
  • Simplifying application development with Spring Boot
  • Spring Boot auto-configuration, starters and properties
  • Build a simple REST application using Spring Boot, embedded Web Server and fat JARs or classic WARs
  • Implementing REST client applications using RestTemplate and WebClient
  • Spring Security
  • Enable and extend metrics and monitoring capabilities using Spring Boot actuator
  • Utilize Spring Boot enhancements to testing

Audience

Application developers who want to increase their understanding of Spring and Spring Boot with hands-on experience and a focus on fundamentals.

 

Upcoming Classes

Virtual Classroom Live
December 03, 2024

$3,700.00
4 Days    9:00 AM EST - 5:00 PM EST
view class details and enroll
Private Training Available
No date scheduled, don’t see a date that works for you or looking for a private training event, please call 651-905-3729 or submit a request for further information here.
request a private session or new date

Course Overview

Introduction to Spring

  • Java configuration and the Spring application context
  • @Configuration and @Bean annotations
  • @Import: working with multiple configuration files
  • Defining bean scopes
  • Launching a Spring Application and obtaining Beans

Spring JAVA Configuration: A Deeper Look

  • External properties & Property sources
  • Environment abstraction
  • Using bean profiles
  • Spring Expression Language (SpEL)

Annotation-based Dependency Injection

  • Component scanning
  • Autowiring using @Autowired
  • Java configuration versus annotations, mixing.
  • Lifecycle annotations: @PostConstruct and @PreDestroy
  • Stereotypes and meta-annotations

Factory Pattern in Spring

  • Using Spring FactoryBeans

Advanced Spring: How Does Spring Work Internally?

  • The Spring Bean Lifecycle
  • The BeanFactoryPostProcessor interception point
  • The BeanPostProcessor interception point
  • Spring Bean Proxies
  • @Bean method return types

Aspect-oriented programming

  • What problems does AOP solve?
  • Defining pointcut expressions
  • Implementing various types of advice

Testing a Spring-based Application

  • Spring and Test-Driven Development
  • Spring 5 integration testing with JUnit 5
  • Application context caching and the @DirtiesContext annotation
  • Profile selection with @ActiveProfiles
  • Easy test data setup with @Sql

Data Access and JDBC with Spring

  • How Spring integrates with existing data access technologies
  • DataAccessException hierarchy
  • Spring‘s JdbcTemplate

Database Transactions with Spring

  • Transactions overview
  • Transaction management with Spring
  • Transaction propagation and rollback rules
  • Transactions and integration testing

Spring Boot Introduction

  • Introduction to Spring Boot Features
  • Value Proposition of Spring Boot
  • Creating a simple Boot application using Spring Initializer website

Spring Boot Dependencies, Auto-configuration, and Runtime

  • Dependency management using Spring Boot starters
  • How auto-configuration works
  • Configuration properties
  • Overriding auto-configuration
  • Using CommandLineRunner

JPA with Spring and Spring Data

  • Quick introduction to ORM with JPA
  • Benefits of using Spring with JPA
  • JPA configuration in Spring
  • Configuring Spring JPA using Spring Boot
  • Spring Data JPA dynamic repositories

Spring MVC Architecture and Overview

  • Introduction to Spring MVC and request processing
  • Controller method signatures
  • Using @Controller, @RestController and @GetMapping annotations
  • Configuring Spring MVC with Spring Boot
  • Spring Boot packaging options, JAR or WAR

Rest with Spring MVC

  • An introduction to the REST architectural style
  • Controlling HTTP response codes with @ResponseStatus
  • Implementing REST with Spring MVC, @RequestMapping, @RequestBody and @ResponseBody
  • Spring MVC’s HttpMessageConverters and automatic content negotiation

Spring Security

  • What problems does Spring Security solve?
  • Configuring authentication
  • Implementing authorization by intercepting URLs
  • Authorization at the Java method level
  • Understanding the Spring Security filter chain
  • Spring security testing

Actuators, Metrics and Health Indicators

  • Exposing Spring Boot Actuator endpoints
  • Custom Metrics
  • Health Indicators
  • Creating custom Health Indicators
  • External monitoring systems

Spring Boot Testing Enhancements

  • Spring Boot testing overview
  • Integration testing using @SpringBootTest
  • Web slice testing with MockMvc framework
  • Slices to test different layers of the application

Spring Security Oauth (Optional Topic)

  • OAuth 2 Overview
  • Implementing OAuth 2 using Spring Security OAuth

Reactive Applications with Spring (Optional Topic)

  • Overview of Reactive Programming concepts
  • Reactive Programming support in Spring
  • Using Spring’s reactive WebClient

Upcoming Classes

Virtual Classroom Live
December 03, 2024

$3,700.00
4 Days    9:00 AM EST - 5:00 PM EST
view class details and enroll
Private Training Available
No date scheduled, don’t see a date that works for you or looking for a private training event, please call 651-905-3729 or submit a request for further information here.
request a private session or new date

Prerequisites

Some developer experience using Java, an IDE (Eclipse, STS or IntelliJ) and build tools such as Maven or Gradle.

Upcoming Classes

Virtual Classroom Live
December 03, 2024

$3,700.00
4 Days    9:00 AM EST - 5:00 PM EST
view class details and enroll
Private Training Available
No date scheduled, don’t see a date that works for you or looking for a private training event, please call 651-905-3729 or submit a request for further information here.
request a private session or new date