O'Reilly logo

Spring 5.0 Microservices - Second Edition by Rajesh R V

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running and testing the project

Perform the following steps to build and test the microservices developed in this chapter:

  1. Build each of the projects using Maven. Ensure that the test flag is switched off. The test programs assume other dependent services are up and running. It fails if the dependent services are not available:
      mvn -Dmaven.test.skip=true install
  1. Run the RabbitMQ server as follows:
      rabbitmq_server-3.5.6/sbin$ ./rabbitmq-server
  1. Run the following commands in separate terminal windows:
      java -jar target/fares-1.0.jar
      java -jar target/search-1.0.jar
      java -jar target/checkin-1.0.jar
      java -jar target/book-1.0.jar
      java -jar target/website-1.0.jar
  1. The website project has a CommandLineRunner, which will execute ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required