Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Creating Spring Boot Microservices

via LinkedIn Learning

Overview

Coursera Plus Annual Sale: All Certificates & Courses 25% Off!
Get an intermediate-level overview on how to start creating microservices using the power of the Spring Boot 3 platform.

Syllabus

Introduction
  • Build a RESTful Spring Boot microservice
  • What you should know
  • How to use the exercise files
1. Spring Framework Introduction
  • Inversion of control pattern
  • Spring ApplicationContext and Spring Beans
  • Spring autowiring annotations
  • Challenge
  • Solution
2. Create a Spring Boot Microservice
  • Introduction to Spring Initializr
  • Project setup
  • Build, deploy, and launch the microservice
  • Challenge: Add the Actuator dependency
  • Solution: Add the Actuator dependency
3. Leverage Spring-Data-JPA Repository Interfaces
  • The domain model
  • The persistence entities
  • Declare JPA repositories
  • Spring Data JPA repository dependency injection
  • Invoking the repositories
  • Introduction to Spring Data query methods
  • Challenge: Create a JPQL query method
  • Solution: Create a JPQL query method
4. Expose RESTful API's with Spring Data REST
  • Create APIs with Spring Data REST
  • Mapping API endpoints to repositories
  • Override default behavior
  • Swagger UI
  • Challenge: Modify the URL repository keyword
  • Solution: Modify the URL repository keyword
5. Expose RESTful API's with Spring MVC
  • Choosing the right framework
  • Declaring a new RestController
  • Create the RestController HTTP POST endpoint
  • Create the RestController HTTP GET endpoint
  • Create the RestController HTTP PUT, PATCH, and DELETE endpoints
  • Challenge: Add a PATCH endpoint
  • Solution: Add a PATCH endpoint
6. Best Practices
  • Global exception handling
  • Transaction rollback
  • Add a runtime logger
  • JUnit, Mockito, and SpringBootTest
  • API documentation
7. Dockerized Microservices and Databases
  • Why Docker?
  • Dockerizing a microservice
  • Spring Boot Docker Compose
  • Database versioning with Flyway migrate
8. Create a RESTful MongoDB Microservice
  • Use cases for an image microservice
  • Challenge: Create the Spring Boot MongoDB project
  • Solution: Create the Spring Boot MongoDB project
  • Image file upload microservice
  • Spring Data MongoDB documents and repositories
9. Create an API Gateway with Spring Cloud
  • Use cases for an API gateway microservice
  • Routing to the JPA microservice
  • Routing to the MongoDB microservice
  • Add Spring Security to the gateway
  • Orchestrate with Docker Compose
  • Cleaning up the workspace
Conclusion
  • Next steps

Taught by

Mary Ellen Bowman

Reviews

4.3 rating at LinkedIn Learning based on 20 ratings

Start your review of Creating Spring Boot Microservices

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.