Developing the Spring Boot Java microservice using STS
In this section, developing another Java-based REST/JSON Spring Boot service using STS will be demonstrated.
Note
The full source code of this example is available as the chapter2.bootrest
project in the code files of this book.
Open STS, right-click within the Project Explorer window, navigate to New | Project, and select Spring Starter Project, as shown in the following screenshot, and click on Next:
Spring Starter Project is a basic template wizard that provides a number of other starter libraries to select from.
Type the project name as
chapter2.bootrest
or any other name of your choice. It is important to choose the packaging as JAR. In traditional web applications, a war file is created and then deployed to a servlet container, whereas Spring Boot packages all the dependencies to a self-contained, autonomous JAR file with an embedded HTTP listener.Select 1.8 under Java Version. Java 1.8 is recommended for Spring 4 applications. Change...