Java Magazine, Mar/Apr 2018
ORACLE COM JAVAMAGAZINE MARCH APRIL 2018 85 reactive programming Kotlin language DSL that also ships as part of Spring Framework 5 The Kotlin DSL requires less code and also supports retrieving the generic parameter thanks to runtime reification of inline methods Listing 3 shows the same endpoints reimplemented using the Kotlin language DSL Listing 3 The same endpoints using the Kotlin language DSL package com example libraryservice import org springframework context annotation Bean import org springframework context annotation Configuration import org springframework context annotation Profile import org springframework web reactive function server ServerResponse ok import org springframework web reactive function server body import org springframework web reactive function server router @ Profile frp kotlin @ Configuration class BookRestConfigurationKotlin @ Bean fun routes br BookRepository router GET books r ok body br findAll GET books author r ok body br findByAuthor r pathVariable author Spring Security Even with this though the code is not quite ready for production I need to address security The Spring Security framework supports a rich set of integrations with all manner of identity providers It supports authentication by propagating a security context so that application
You must have JavaScript enabled to view digital editions.