Spring Boot Microservices and Spring Cloud
4.5 (2,603 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
12,254 students enrolled

Spring Boot Microservices and Spring Cloud

Learn to build RESTful Microservices with Spring Boot and Spring Cloud
4.5 (2,603 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
12,254 students enrolled
Created by Sergey Kargopolov
Last updated 6/2020
English
English [Auto]
Current price: $27.99 Original price: $39.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 16.5 hours on-demand video
  • 4 articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Build and run RESTful Microservices
  • Implement User Authentication
  • Eureka Discovery Service
  • Implement User Authorization with Spring Security and JWT
  • Zuul API Gateway and a Load Balancer
  • Learn to use JPA to persist data into a Database
  • Cloud Cloud Config Server
  • Learn to install MySQL Server and persist data into MySQL
  • Spring Cloud Bus and Rabbit MQ
  • H2 in-memory database and H2 Console
  • Spring Boot Actuator
  • Learn to use HTTP Postman
  • Use Spring Security
  • Learn to use Spring Initializer
  • Distributed Tracing with Sleuth and Zipkin
  • Learn to use Spring Tool Suite
  • Centralized Logging with ELK Stack(Logstash, Elasticsearch, Kibana)
  • Run Microservices in Docker Containers
Course content
Expand all 210 lectures 16:33:16
+ Introduction
10 lectures 57:28
Source Code
00:07
A few suggestions
03:29
What is a Microservice?
07:11
Sample Microservices Architecture
07:20
Download and Install Postman HTTP Client
02:09
Postman Overview
10:41
Resource and Collection URIs
11:12
HTTP Methods: GET, POST, DELETE and PUT
03:44
HTTP Headers: Accept and Content Type
04:12
+ Setting up Development Environment
2 lectures 07:43
Install Java Platform(JDK)
05:48
Download and Install Spring Tool Suite(STS)
01:55
+ Building RESTful Web Services - A Quick Start. (Optional)
25 lectures 02:11:29
Introduction
00:41
Creating a New Project
06:12
Creating a new Spring project using Spring Boot Initializr
04:42
Create Users Rest Controller class
02:45
Adding Methods to Handle POST, GET, PUT, DELETE HTTP requests
03:13
Reading Query String Request Parameters
04:51
Making Parameters Optional or Required
04:35
Returning Java Object as Return Value
04:11
Returning Object as JSON or XML Representation
05:35
Set Response Status Code
04:58
Reading HTTP POST Request Body. The @RequestBody annotation.
08:13
Validating HTTP POST Request Body
08:56
Store Users Temporary
04:50
Handle HTTP PUT Request
09:06
Handle HTTP Delete Request
04:52
Handle an Exception
07:44
Return Custom Error Message Object
05:35
Handle a Specific Exception
03:06
Throw and Handle You Own Custom Exception
04:13
Catch More Than One Exception with One Method
02:54
Dependency Injection: Create and Autowire a Service Layer Class
10:54
Constructor Based Dependency Injection
06:24
Run Web Service as a Standalone Application
04:52
+ Eureka Discovery Service - A Quick Start
2 lectures 09:56
Introduction to Eureka Discovery Service
04:17
Startup Eureka Service Discovery
05:39
+ Users Microservice - A Quick Start
6 lectures 14:03
Introduction to Building a Users Microservice
02:10
Users Microservice - Create new Spring Boot Project
03:40
Enable Spring Discovery Cloud Client
03:01
Create Users Rest Controller
02:04
Access Users Web Service Endpoint via Eureka Discovery Service
02:59
+ Account Management Microservice - A Quick Start
3 lectures 08:29
Introduction to Building an Account Management Microservice
01:34
  • Create a new Spring Boot Project

  • Create a new RestController

  • Enable Eureka Discovery Client

Password Reset - Create a new Spring Boot Project
03:59
Access Account Management Microservice via Eureka Discovery Service
02:56
+ Zuul API Gateway - A Quick Start
3 lectures 11:15
Introduction to Zuul API Gateway
03:24
Create a ZUUL API Gateway Project
03:37
Access Microservices via API Gateway
04:14
+ Zuul as a Load Balancer - A Quick Start
3 lectures 14:35
Load Balancer - Introduction
00:50
Starting Up More Microservices
08:58
Trying How Load Balancer Works
04:47
+ H2 In-Memory Database
3 lectures 15:39
H2 In-memory Database. Introduction.
03:19
H2 Database Console Overview
07:40
Adding Support for the H2 Database
04:40
+ Users Microservice - Implementing User Sign up
19 lectures 01:06:28
Introduction
00:41
Adding method to handle HTTP Post Request
01:14
Implementing the Create User Request Model class
03:17
Validating HTTP Request Body
04:20
Application Layers
02:48
Implementing Service Layer Class
02:10
Create a Shared DTO Class
03:15
Generate Unique Public User Id
02:16
Adding Support for Spring Data JPA
02:01
Implementing User Entity Class
06:07
Implementing Spring Data JPA CRUD Repository
02:34
Save User Details in Database
11:15
Return Http Status Code
02:29
Implementing Create User Response Model
04:30
Add Spring Security to Users Microservice
01:15
Add WebSecurity Configuration
04:12

- Add Spring Security support to pom.xml

- Disable Spring Security in Main Application class

- Use BCryptPasswordEncoder to Encode Password

Encrypt User Password
04:50
Allow only IP address of Zuul API Gateway
02:15
Adding Support to Return JSON or XML
04:59
Requirements
  • Know Java
  • Mac computer
Description

This video course is for Beginners who have never build RESTful Web Services and Microservices before. It will guide you step-by-step through basics and will help you create and run RESTful Microservices from scratch. You will learn how to run Microservices on your own developer's machine as well as in Docker Containers on AWS EC2 Linux machines.

By the end of this course you will have your own RESTful Spring Boot Microservices built and running in Spring Cloud.

You will learn how to create and run your own: 

  • RESTful Microservices,

  • Eureka Discovery Service,

  • Zuul API Gateway,

  • Load Balancer,

  • Spring Cloud Config Server,

You will learn to use:

  • Spring Cloud Bus and Rabbit MQ,

  • Spring Boot Actuator

You will also learn how to implement for your REST API features like: 

  • User Authentication(Login) and,

  • User Authorization(Registration)

You will learn to use: 

  • Spring Security and JWT

You will learn how to use: 

  • Spring Data JPA to store user details in a database,

  • H2 in-memory database and a database console,

  • MySQL database server,

  • Postman HTTP Client,

  • Spring Tool Suite,

  • Spring Initializer

This course also covers how to:

  • Trace HTTP Requests with Spring Cloud Sleuth and Zipkin(Distributed tracing)

  • Aggregate log files in one place(Centralized logging) with ELK stack(Logstash, Elasticsearch, Kibana).

You will also learn how to: 

  • Start up AWS EC2 Linux machine,

  • Install Docker,

  • Create Docker images,

  • Run Microservices in Docker containers on multiple EC2 Linux machines in Amazon AWS Cloud.

Who this course is for:
  • Beginner Java developers
  • Java developers interested in learning how to build Spring Boot Microservices