Let's start with creating a new project using Spring Initializr (http://start.spring.io/). The following screenshot shows the details:
A few things to note are as follows:
- Group: com.mastering.spring.reactive
- Artifact: spring-reactive-example
- Dependencies : ReactiveWeb (to build a reactive web application) and DevTools (for auto-reload when the application code is changed)
Download the project and import it into your IDE as a Maven project.
Important dependencies in the pom.xml file are shown as follows:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> ...