How to do it...

When creating a Spring MVC application using Spring Boot 2.0, the first thing to consider is the Spring Boot starter parent POM configuration. This inherits all the Spring Boot Maven dependencies supported by the chosen Spring Boot version. In this book, version 2.0.0M2 is the updated milestone for Spring Boot 2.0 at the moment:

  1. Open the newly created pom.xml of ch09 and add the following starter parent configuration:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.packt.cookbook</groupId> <artifactId>ch09</artifactId> ...

Get Spring 5.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.