Creating Your First RESTful Spring Boot Microservice with JPA

Creating Your First RESTful Spring Boot Microservice with JPA

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 27m | 873 MB

Updated 9/20/2018
Turbocharge your back-end Java RESTful API development with Spring Boot and Spring Data technologies. This course is intended for experienced Java developers who want to rapidly build microservices that connect with relational databases via the Java Persistence API (JPA). Here, Mary Ellen Bowman walks you through a step-by-step process for building a microservice with an exposed RESTful API featuring HATEOAS, paging, sorting, and CrudRepository interfaces. Learn about technologies such as Spring Boot, Spring Data JPA, Spring Data REST, and Spring Web MVC @RestController, and see how they all come together into smart and elegant solutions. As a wrap-up, Mary Ellen guides developers in choosing between the Spring Data REST and REST controllers when exposing more complex services.

Topics include:

  • Setting up the project
  • Building, deploying, and launch the microservice
  • Declaring Spring Data JPA repository interfaces
  • Invoking repositories
  • Using Spring Data query methods
  • Exposing RESTful APIs with Spring Data REST
  • Using the /search resource to invoke query methods
  • Paging and sorting
  • Declaring a new REST controller
  • Creating HTTP methods for creating, reading, updating and deleting persistent data.
Table of Contents

Introduction
1 Welcome
2 Using the exercise files

Create a Spring Boot Microservice
3 Introduction to Spring Initialzr
4 Project setup
5 Build deploy and launch the microservices

Leverage Spring Data JPA Repository Interfaces
6 The domain model
7 Declare Spring Data JPA repository interfaces
8 Spring Data JPA repository dependency injection
9 Invoke the Spring Data JPA repositories
10 Introduction to Spring Data query methods

Expose RESTful APIs with Spring Data REST
11 What is a hypermedia-driven RESTful API
12 Creating APIs with Spring Data REST
13 Explore the search resource
14 Paging and sorting
15 Control API exposure

Expose RESTful APIs with Spring MVC
16 Choose the right framework
17 Declare a new RestController
18 Create RestController HTTP POST method
19 Create RestController HTTP GET methods
20 Create RestController HTTP PUT PATCH and DELETE methods
21 Paging and sorting DTOs

Spring Boot 2
22 Spring Data 2.0 CrudRepository changes
23 Migrating the application to Spring Boot 2
24 Declare Spring repository Optional findBy methods

Conclusion
25 Next steps