Let us build a Spring 5 reactive web project using Kotlin by performing the following steps:
- 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.
- 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 ...