vmware-training-courses
7829  Reviews star_rate star_rate star_rate star_rate star_half

Spring Boot: Developer

This 2-day course offers experience with Spring Boot and its major features, including auto-configuration, Actuator, Spring Boot testing framework and more. On completion, participants will have a...

Read More
$1,850 USD GSA  $1,677.58
Course Code SP-BOOT
Duration 2 days
Available Formats Classroom

Spring Boot makes it easy to create stand-alone, production-grade Spring-based applications that you can "just run." Most Spring Boot applications need minimal Spring configuration. Features of this course include the ability to create stand-alone Spring applications, embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files), provide opinionated 'starter' dependencies to simplify your build configuration, automatically configure Spring and 3rd party libraries whenever possible, provide production-ready features such as metrics, health checks, and externalized configuration, and precludes the need for code generation and XML configuration.

Spring Boot gives developers a production-ready application. The moment you create a Spring Boot application, you don’t have to do any configuration. Spring Boot is a tool that makes developing web application and microservices with Spring framework faster and easier through three core capabilities including autoconfiguration so you don’t have to configure manually, an opinionated approach to configuration, as Spring Boot chooses which packages to install and which default values to use, rather than requiring you to make all those decisions and set up everything manually, and the ability to create standalone applications that run on their own, without relying on an external web server, by embedding a web server such as Tomcat or Netty into your app during the initialization process.

This 2-day course offers experience with Spring Boot and its major features, including auto-configuration, Actuator, Spring Boot testing framework and more. On completion, participants will have a foundation for creating enterprise and cloud-ready applications.

  • Please note that this course is a subset of the material in our 4-day Spring: Core Training course - there is no need to take both courses. This course is recommended if you have a good working knowledge of Spring Basics (see Prerequisites) but are new to Spring Boot.

Skills Gained

By the end of the course, you should be able to meet the following objectives:

  • Describe the benefits provided by Spring Boot
  • Initialize a project using Spring Boot Starters
  • Leverage Spring Boot's auto configuration features
  • Create simplified backing-store solutions using Spring Data JPA
  • Build a simple MVC application using Spring Boot, embedded Web Server and fat JARs or classic WARs
  • Build a RESTful Web application
  • Use Spring Security to secure Web and REST endpoints
  • Enable and extend metrics and monitoring capabilities using Spring Boot actuator
  • Leverage advance configuration capabilities
  • Utilize Spring Boot enhancements to testing

Who Can Benefit

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

Prerequisites

  • A good working knowledge on web application development using Java and an IDE (Eclipse, STS or IntelliJ).
  • Basic understanding of Spring: Java Config, component- scanning, Spring driven testing and Spring data-management (JdbcTemplate, @Transactional).
  • Experience using Java and build tools such as Maven or Gradle.

Course Details

Outline

Introduction to Spring Essentials

  • Why Spring
  • Configuration using Spring
  • Bean creation
  • Data Management

Spring Boot Introduction

  • Introduction to Spring Boot Features
  • Value Proposition of Spring Boot
  • Creating a simple Boot application using Spring Initializr 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 negotiationageConverters 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