How to do it...

Let us build a Spring 5 reactive web project using Kotlin by performing the following steps:

  1. Convert the ch12-kot project to Spring Boot 2.0 by adding the parent starter POM of Spring Boot 2.0.0M2, including some major dependencies such as webflux, actuator, Spring JDBC, Spring Data JPA, and the MySQL connector plugin.
  2. Inside the <properties> tag of pom.xml, add these lines specific to Kotlin plugins:
<kotlin.compiler.incremental>true </kotlin.compiler.incremental> <kotlin.version>1.1.3-2</kotlin.version> <project.build.sourceEncoding>UTF-8 </project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8 </project.reporting.outputEncoding> <java.version>1.8</java.version> <startClass> org.packt.microservice.kotlin.KotlinBootApplication ...

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.