More info: https://github.com/spring-projects/spring-fu
Server: http://localhost:8080
GET("/", simpleHandler::main)
GET("/hello", simpleHandler::hello)
GET("/hello-event", simpleHandler::helloEvent)
GET("/date", simpleHandler::date)
GET("/api/user", userHandler::findAll)
POST("/api/user", userHandler::new)
GET("/api/user/{id}", userHandler::findById)
PUT("/api/user/{id}", userHandler::update)
DELETE("/api/user/{id}", userHandler::delete)
git clone https://github.com/wojciech-zurek/kotlin-spring-fu-mongo-example.git
cd kotlin-spring-fu-mongo-example/
./gradlew run
cd kotlin-spring-fu-mongo-example/
./gradlew shadowJar
java -jar build/libs/kotlin-spring-fu-mongo-example-all.jar
cd kotlin-spring-fu-mongo-example/
./gradlew cleanTest test