Basic Spring Boot app in Kotlin
You can read more about it here on my blog.
We are using a trampoline class in Java to help spring find the main method.
Because of that, the pom is set to compile Kotlin code before Java code by running the Kotlin compilation in the
$ mvn clean package
$ mvn spring-boot:run
$ java -jar target/SpringApp.jar