Creating Spring Boot Microservices
Offered By: LinkedIn Learning
Course Description
Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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
- Inversion of control pattern
- Spring ApplicationContext and Spring Beans
- Spring autowiring annotations
- Challenge
- Solution
- Introduction to Spring Initializr
- Project setup
- Build, deploy, and launch the microservice
- Challenge: Add the Actuator dependency
- Solution: Add the Actuator dependency
- 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
- 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
- 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
- Global exception handling
- Transaction rollback
- Add a runtime logger
- JUnit, Mockito, and SpringBootTest
- API documentation
- Why Docker?
- Dockerizing a microservice
- Spring Boot Docker Compose
- Database versioning with Flyway migrate
- 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
- 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
- Next steps
Taught by
Mary Ellen Bowman
Related Courses
Audit System with Spring Boot AOPCoursera Project Network via Coursera Jenkins : Automating your delivery pipeline
Coursera Project Network via Coursera Learn Spring
Codecademy Learn Spring: Building an App
Codecademy Learn Spring: Fundamentals and Controllers
Codecademy