June 2018
Intermediate to advanced
408 pages
11h 23m
English
The Spring Framework 5.0 introduces a statically typed JVM language support the Kotlin language (https://kotlinlang.org/), which enables code that is short, readable, and expressive. Kotlin is basically an object-oriented language that runs on top of the JVM, and also supports functional programming style.
With Kotlin support, we can dive into functional Spring programming, especially for functional web endpoints and bean registration.
In Spring Framework 5.0, we can write clean and readable Kotlin code for web-functional APIs as follows:
{ ("/bank" and accept(TEXT_HTML)).nest { GET("/", bankHandler::findAllView) GET("/{customer}", bankHandler::findOneView) } ("/api/account" and accept(APPLICATION_JSON)).nest { GET("/", ...Read now
Unlock full access