Developing our first Spring Boot microservice
In this section, we will demonstrate how to develop a Java-based REST/JSON Spring Boot service using STS.
Note
The full source code of this example is available as the chapter3.Bootrest project in the code files of this book under the following Git repository: https://github.com/rajeshrv/Spring5Microservice
- Open STS, right-click in
Project Explorerwindow, selectNew Project, then selectSpring Starter Projectas shown in the following screenshot. Then click onNext:

- The
Spring Starter Projectis a basic template wizard, which provides a selection of a number of other starter libraries. - Type the project name as
chapter3.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 into a servlet container, whereas, Spring Boot packages all the dependencies into a self-contained, autonomous jar with an embedded HTTP listener.
Â
- Select
Java Version...