SpringBoot Starter

Now, let's try to define a RESTful Fibonacci web service using the previously discussed annotations support. To do this, we are going to use Spring Boot as it offers a quick way to create enterprise-grade Spring applications. The Spring Boot project provides starter dependencies for all Spring modules. Each starter has assumed default conventions to ensure that a project is up and running without a fuss.

In order to use SpringWebFlux, we need to add the spring-boot-starter-webflux dependency to our project. Let's revisit our build.gradle, as shown here:

buildscript {    repositories {        maven { url 'https://repo.spring.io/libs-snapshot' }    }    dependencies { classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.0.3.RELEASE' ...

Get Hands-On Reactive Programming with Reactor 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.