
Learn how to design Spring Boot microservices with JPA persistence, implement REST microservices, secure them with JWT authentication, and build a single-page application using AJAX and JavaScript.
Compare monolithic and microservice architectures by splitting into dedicated customer, product, and order services for independent deployment with multiple technologies, aligned to the single responsibility principle.
Define an in-memory user entity mapped to a database table using JPA annotations, including email and name columns, with email constrained as unique, within a Spring Boot microservices context.
Implement the remaining login service methods, validate and generate JWTs from requests, and handle missing or invalid tokens with try-catch or exception propagation in Spring Boot with JPA.
Implement rest controller logic to fetch a user by request parameters, validate credentials, construct a json response body, and return appropriate http statuses with a dedicated response model.
Implement rest controller in spring boot microservices with jpa, handling request and response, validating user data, using try-catch for exceptions, logging, and returning success or error messages.
Continue implementing the rest controller by validating a present, non-expired token, returning an integer status in the response, and saving relevant data to the database.
Test a Spring Boot microservice with Postman by sending post requests for login, validating responses, and performing create, read, and delete operations against the database.
Develop the statistics microservice in the Spring Boot Microservices with JPA course, set up an in-memory database, and define a latest statistics table to persist priority data.
define a StatisticsDao interface that extends the JPA repository, crafting a query to fetch the last 10 items by a user's email using Spring.
Improve a Spring Boot microservices interface by separating JavaScript from the cms, creating a dedicated JavaScript folder, adding actions.js, fixing bugs, and retesting the page and database updates.
This course is a practical course which explains how to realise a microservice infrastructure in order to realise a full-stack web application composed by a "framework-less" Single Page Application and two restful Spring Boot microservices interacting with each other and with two different databases thanks to the implementation of the JPA (Java Persistence Api).
You'll have the basis to generate fastly a microservice infrastructure, to organise your application using different layers according to the "SOLID" principle and following the MVC pattern.
You will have the instrument to organise your communication protocols using simple and effective rules, to implement restful web services which communicate with Json Messages.
This is course has the same topic of the italian course Sviluppo Web a Microservizi con Java Spring Boot e Ajax" so it can easily considered as its English version. The example developed is different but with the same topics: microservices, Spring Boot, JPA and Rest calls.