Coding the planes microservice

We will add some features on the application. For this specific application, we will create CRUD functionalities with Spring Reactive WebFlux.

The Plane class represents the plane model in our microservices and the class should be like this:

package springfive.airline.airlineplanes.domain;import com.fasterxml.jackson.annotation.JsonInclude;import com.fasterxml.jackson.annotation.JsonInclude.Include;import java.util.Set;import lombok.Builder;import lombok.Data;import lombok.NonNull;import org.springframework.data.annotation.Id;import org.springframework.data.mongodb.core.mapping.Document;import springfive.airline.airlineplanes.resource.data.PlaneRequest;@Data@Document(collection = "planes")@JsonInclude(Include. ...

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.