Questions Management – Composite Question Service – Create composite-question-service project using Spring Tool Suite

Check out the full series of Questions Management tutorial here.

Composite Service is a service that will call different Core Services to perform the transform, aggregate data from that Core Service. In this first phase of our Question Management application, there will be 2 Composite Services, one for gathering information about questions including: category, question content and choices of questions; and another one is for options. For questions, this service is called Composite Question Service. In this tutorial, I will guide you all how to create Spring Boot project for Composite Question Service.

The steps to create a Spring Boot project, I have introduced for you. Here, I only mention some important points in the project creation process for Composite Question Service only.

In the New Spring Starter Project window, after filling in the information for our project, the Location section, we need point to the project questions-management directory:

Questions Management – Composite Question Service – Create composite-question-service project using Spring Tool Suite

As you can see in the project questions-management folder, I added a composite folder inside this folder to contain all the projects related to the Composite Service.

In the selection of dependencies to use for the composite-question-service project, because Composite Service will not have any operations on the database, we will only use the following dependencies:

Questions Management – Composite Question Service – Create composite-question-service project using Spring Tool Suite

Result:

Questions Management – Composite Question Service – Create composite-question-service project using Spring Tool Suite

Next, I’ll revise this project a little bit so that it uses the parent project of the project questions-management.

In the project’s pom.xml file, I will delete the current <parent> and <properties> declarations for using the parent project of the project questions-management:

Then declare the composite-question-service project as a module of the project questions-management as follows:

Add Comment