Adding Spring Boot to our main project

We will use the Java 9 to develop microservices. Therefore, we'll use the latest Spring Framework and Spring Boot project. At the time of writing, Spring Boot 2.0.0 build snapshot release version was available.

You can use the latest released version. Spring Boot 2.0.0 build snapshot uses Spring 5 (5.0.0 build snapshot release).

Let's take a look at the following steps and learn about adding Spring Boot to our main project:

  1. Open the pom.xml file (available under 6392_chapter2 | Project Files) to add Spring Boot to your sample project:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="" xmlns:xsi="" xsi:schemaLocation=" ...

Get Mastering Microservices with Java 9 - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.