/ktSpringTest

Basic Spring Boot app in Kotlin

Primary LanguageKotlinApache License 2.0Apache-2.0

ktSpringTest

Basic Spring Boot app in Kotlin

You can read more about it here on my blog.

Notes

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 process-sources phase.

Build

$ mvn clean package

Run

$ mvn spring-boot:run

or

$ java -jar target/SpringApp.jar