
Explore Spring WebFlux, a reactive web framework built on Spring Framework 5 and Project Reactor, for building reactive web apps and rest APIs using the reactive MongoDB driver.
Architect a Spring Boot webflux app with controller, service, repository layers, where methods return mono or flux and use a MongoDB to build reactive employee rest CRUD api.
Set up a Spring Boot project in IntelliJ using Spring Initializr, Maven, Java 17, and Spring Boot 3.0.1, and add the Spring Reactive Web, MongoDB Reactive, and Lombok dependencies.
Implement a reactive get all employees rest API by wiring the service to return a flux of employee DTOs, mapping from entities, and exposing a get endpoint.
Build a reactive update employee REST API with Spring WebFlux and MongoDB, implementing the service and controller layers with Mono, flatMap, and DTO mapping to update records.
Explore unit testing best practices in Java: separate test code from production, mirror package structures in src/test, use given when then naming, proper assertions, and mock dependencies with Mockito.
Unit test the get all employees REST API by mocking the employee service to return a flux of employee DTOs, then verify 200 response with JSON list of employees.
In this course, you will learn how to build and Unit test Reactive REST APIs for Employee Management System projects using Java, Spring Boot, WebFlux, REST, MongoDB, and IntelliJ IDEA.
Learn to build powerful Reactive REST APIs using Java, Spring Boot, and WebFlux in this beginner-friendly course. You'll discover how to handle data in a reactive way, making your applications more efficient and scalable. We’ll work with MongoDB for data storage, ensuring your projects are up-to-date with modern web development practices.
Testing is a key part of building reliable software, so you’ll also learn how to write clear and effective Unit and Integration tests. Using tools like JUnit and Mockito in IntelliJ IDEA, you'll gain the skills to ensure your code works as expected.
By the end of this course, you'll have the confidence to build and test reactive applications, setting you apart in today’s tech world.
Tools and Technologies Used:
Java 17+
Spring Boot 3
Spring WebFlux
Project Reactor
Maven
IntelliJ IDEA
MongoDB
Docker
What You’ll Learn:
How to build Reactive REST APIs with Spring Boot and WebFlux.
How to use MongoDB for reactive data handling.
The basics of reactive programming in Java.
How to write Unit tests for Reactive REST APIs.
How to create and run Integration tests for Reactive REST APIs.
How to use IntelliJ IDEA for coding and testing.