vmptk / spring-kotlin-functional

Spring Framework 5 Kotlin APIs, the functional way

Home Page:https://spring.io/blog/2017/08/01/spring-framework-5-kotlin-apis-the-functional-way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Spring Framework 5 Kotlin APIs, the functional way

https://spring.io/blog/2017/08/01/spring-framework-5-kotlin-apis-the-functional-way


Languages

Language:Kotlin 92.3%Language:HTML 6.1%Language:JavaScript 1.6%