diff --git a/multi/multi__function_catalog_and_flexible_function_signatures.html b/multi/multi__function_catalog_and_flexible_function_signatures.html index d030be0d2..8bae2c557 100644 --- a/multi/multi__function_catalog_and_flexible_function_signatures.html +++ b/multi/multi__function_catalog_and_flexible_function_signatures.html @@ -35,4 +35,5 @@ open fun kotlinConsumer(): (String) -> Unit { }

The above represents Kotlin lambdas configured as Spring beans. The signature of each maps to a Java equivalent of Supplier, Function and Consumer, and thus supported/recognized signatures by the framework. While mechanics of Kotlin-to-Java mapping are outside of the scope of this documentation, it is important to understand that the -same rules for signature transformation outlined in "Java 8 function support" section are applied here as well.

\ No newline at end of file +same rules for signature transformation outlined in "Java 8 function support" section are applied here as well.

To enable Kotlin support all you need is to add spring-cloud-function-kotlin module to your classpath which contains the appropriate +autoconfiguration and supporting classes.

\ No newline at end of file diff --git a/single/spring-cloud-function.html b/single/spring-cloud-function.html index 6f9d5515b..1e35a083d 100644 --- a/single/spring-cloud-function.html +++ b/single/spring-cloud-function.html @@ -80,7 +80,8 @@ open fun kotlinConsumer(): (String) -> Unit { }

The above represents Kotlin lambdas configured as Spring beans. The signature of each maps to a Java equivalent of Supplier, Function and Consumer, and thus supported/recognized signatures by the framework. While mechanics of Kotlin-to-Java mapping are outside of the scope of this documentation, it is important to understand that the -same rules for signature transformation outlined in "Java 8 function support" section are applied here as well.

5. Standalone Web Applications

The spring-cloud-function-web module has autoconfiguration that +same rules for signature transformation outlined in "Java 8 function support" section are applied here as well.

To enable Kotlin support all you need is to add spring-cloud-function-kotlin module to your classpath which contains the appropriate +autoconfiguration and supporting classes.

5. Standalone Web Applications

The spring-cloud-function-web module has autoconfiguration that activates when it is included in a Spring Boot web application (with MVC support). There is also a spring-cloud-starter-function-web to collect all the optional dependencies in case you just want a simple diff --git a/spring-cloud-function.xml b/spring-cloud-function.xml index 832a661a9..b81d1bcf0 100644 --- a/spring-cloud-function.xml +++ b/spring-cloud-function.xml @@ -222,6 +222,8 @@ open fun kotlinConsumer(): (String) -> Unit { Supplier, Function and Consumer, and thus supported/recognized signatures by the framework. While mechanics of Kotlin-to-Java mapping are outside of the scope of this documentation, it is important to understand that the same rules for signature transformation outlined in "Java 8 function support" section are applied here as well. +To enable Kotlin support all you need is to add spring-cloud-function-kotlin module to your classpath which contains the appropriate +autoconfiguration and supporting classes.