Kotlin + Spring Boot + Spring Data REST (demo project)

Take a look at the http://0.0.0.0:8080/restaurants for the backend generated by Spring Data REST from the RestaurantRepository interface declaration it found.

For explicitly defined endpoints, HelloController annotations produced http://0.0.0.0:8080/hello and http://0.0.0.0:8080/count .

Build with mvn clean package, which packages all the dependencies + an embedded web server into a runnable JAR.

Then in production, just run the JAR, with any command line parameters you'd want. They match the application.yml settings.

Tip using maven compile plugin with kotlin

https://stackoverflow.com/questions/43980110/using-kotlin-class-in-java-cannot-find-symbol

From: https://github.com/mikaelhg