Spring-load your Java development. Learn how to use Spring Boot and JPA to deliver back-end microservices to consumers of RESTful APIs, including mobile apps, responsively designed UIs, and other microservices.
- (Mary Ellen Bowman) Welcome to creating your first RESTful Spring Boot Microservice with JPA. I'm Mary Ellen Bowman and I'm happy to present to you some fairly recent Spring-based solutions to turbo-charge your back end Java development. This course serves as an introduction to Spring Boot, Spring Data JPA, Spring Data REST, and Spring MVC Web RestControllers. In order to cover so many topics, I assume that you have experience with or knowledge of Intermediate level Java, the Spring container for dependency injection, Java Persistence API for relational databases, and it's good to have an understanding of REST concepts and web application servers such as Tomcat.
Rather than me just explaining concepts to you, we will work together to build a RESTful Spring Boot Microservice. This chapter will build upon each other until we have a final solution. But every solution needs a problem, and every problem has a stakeholder. Our stakeholder is an imaginary tour operator called Explore California. They need a new backend with Restful APIs to expose their existing database of tours. So, from an existing database schema, we will create a new web application that exposes the Explore California tours as a RESTful API.
Let's get started!
- 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.