February 2019
Intermediate to advanced
446 pages
10h 55m
English
To see how our code works, first we need to build it and then execute it. We'll use the maven clean package command to build the service JARs.
Now, to execute these service JARs, simply execute the following command from the project's home directory:
java -jar <service>/target/<service_jar_file>
Here are some examples:
java -jar restaurant-service/target/restaurant-service.jar java -jar user-service/target/user-service.jarjava -jar booking-service/target/booking-service.jar
So far, we have created the microservices that run independently and have no dependencies on each other. Later in this book in Chapter 9, Inter-Process Communication Using REST, we'll see how these microservices communicate with each other.
Read now
Unlock full access