/spring-kotlin-functional

Spring Framework 5 Kotlin APIs, the functional way

Primary LanguageKotlin

This project is designed to demonstrate Spring Framework 5 Kotlin support and Functional web and bean APIs used together:

You can also have a look to this WebFlux server DSL experiment in order to provide a more concise and idiomatic code for bootstrapping.

Current master branch is based on standalone WebFlux runtime. Spring Boot is based on JavaConfig and does not provide specific support functional bean definition yet (see this issue where this is discussed). That said, it is possible to use experimentally Spring Boot + functional bean definition together via ApplicationContextInitializer, see this Spring Boot branch for a concrete example.

Build the project and run tests with ./gradlew build, create the executable JAR via ./gradlew shadowJar, and run it via java -jar build/libs/spring-kotlin-functional-1.0.0-SNAPSHOT-all.jar.