O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hands-On Application Development with Spring Boot 2

Video Description

Make your Spring App production-ready from day one

About This Video

  • Learn the most important parts of developing applications with Spring Boot
  • Expose your resources via REST endpoints with Spring Data as the DB access layer
  • Make your application production-ready with MicroMeter and Spring boot actuator

In Detail

Spring Boot is the fastest way to get a Spring application up and running with the fewest lines of code and the least configuration. It aims to make development easy so you can create production-grade applications and services. The Spring framework provides a great toolkit for the development of complex applications. In this course, we’ll fully leverage Spring Boot’s capabilities to create a payment system application and secure it with Spring Security.

This course provides a hands-on approach to building a payment system application from scratch using Spring Boot 2.0. You’ll begin by setting up Spring Boot together with Spring’s most powerful feature: Dependency Injection. Then you’ll build a data access layer with Spring data and rework it to be highly performant using Spring data reactive. Next, you’ll learn about Spring rest and servlets and use it to expose resources via HTTP endpoints.

Later you’ll use Spring MVC to build an interface for the payment system. Moving on, you’ll expose critical business metrics using MicroMeter library and Spring actuator with Prometheus library. Finally, you’ll package your application into a Docker container and deploy your application into the cloud.

Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Chapter 1 : Spring Dependency Injection with Spring Boot
    1. The Course Overview 00:02:35
    2. Set Up the Spring Boot Project and Spring Boot Runner 00:05:50
    3. Creating Scope of Payment Service Bean 00:04:02
    4. Creating @Configuration, @Component, and @Service Beans 00:05:29
    5. Controlling Life Cycle of Spring Bean 00:04:57
    6. Using Component Scan to Find out about Spring Components 00:05:27
  2. Chapter 2 : REST and Servlets with Spring Boot
    1. Exposing Users via REST Endpoint 00:05:03
    2. Intercepting REST Calls via Filter 00:06:06
    3. Using Filter to Add Transactions Support to the REST Endpoint 00:03:45
    4. Plugging Filtering Logic 00:04:59
    5. Testing Filters 00:03:43
  3. Chapter 3 : Accessing Data Layer with Spring Data
    1. Creating Spring Payment Entity 00:05:09
    2. Extending CrudRepository with Custom Methods 00:05:15
    3. Testing CrudRepository 00:05:46
    4. Reworking CrudRepository to Work in a Reactive Fashion 00:04:55
    5. Testing ReactiveCrudRepository 00:05:20
    6. Performing Joins between Payment and User 00:06:08
  4. Chapter 4 : Creating Web Interface with Spring Boot and Spring MVC
    1. Adding Spring MVC to the Spring Boot App 00:04:23
    2. Creating Views for the Payment and User 00:06:12
    3. Exposing View for Retrieving Payment via MVC Controller 00:04:52
    4. Exposing View for Creating New Payment via MVC Controller 00:05:28
    5. Testing MVC Application Using MockMVC Construct 00:07:57
  5. Chapter 5 : Securing Your Application with Spring Security
    1. Adding WebSecurity Configuration to Protect Private Endpoints 00:05:23
    2. Exposing Static Content Securely 00:05:18
    3. Testing Security of Payment Private Endpoints 00:05:10
    4. Adding Security for MVC Endpoints 00:04:23
    5. Performing Security Test on Your App 00:04:20
  6. Chapter 6 : Monitoring and Deploying Spring Boot Production App
    1. Measuring REST Endpoints and Data Access Layer 00:07:38
    2. Creating REST Endpoint for Exposing Custom Metrics 00:04:23
    3. Exposing Metrics via Spring Prometheus Library 00:05:17
    4. Making Application Reliable with Custom Health Checks 00:03:29
    5. Creating a Docker Container with Payment Application Cloud 00:04:28
    6. Deploy Ready Docker Container with Application to Heroku Cloud 00:04:29