diff --git a/src/docs/asciidoc/rsocket.adoc b/src/docs/asciidoc/rsocket.adoc index 9ea969f6045..34a1e23e727 100644 --- a/src/docs/asciidoc/rsocket.adoc +++ b/src/docs/asciidoc/rsocket.adoc @@ -485,7 +485,7 @@ Once you have a <> or [source,java,indent=0,subs="verbatim,quotes",role="primary"] .Java ---- - ViewBox box = ... ; + ViewBox viewBox = ... ; Flux locations = requester.route("locate.radars.within") // <1> .data(viewBox) // <2> @@ -499,7 +499,7 @@ Once you have a <> or [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"] .Kotlin ---- - val box: ViewBox = ... + val viewBox: ViewBox = ... val locations = requester.route("locate.radars.within") // <1> .data(viewBox) // <2> diff --git a/src/docs/asciidoc/web/webflux-functional.adoc b/src/docs/asciidoc/web/webflux-functional.adoc index 7ff4621301e..c79290b1398 100644 --- a/src/docs/asciidoc/web/webflux-functional.adoc +++ b/src/docs/asciidoc/web/webflux-functional.adoc @@ -474,7 +474,7 @@ header: ---- RouterFunction route = RouterFunctions.route() .GET("/hello-world", accept(MediaType.TEXT_PLAIN), - request -> ServerResponse.ok().bodyValue("Hello World")); + request -> ServerResponse.ok().bodyValue("Hello World")).build(); ---- [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"] .Kotlin diff --git a/src/docs/asciidoc/web/webflux.adoc b/src/docs/asciidoc/web/webflux.adoc index 4a10ce87a80..00f71a50baa 100644 --- a/src/docs/asciidoc/web/webflux.adoc +++ b/src/docs/asciidoc/web/webflux.adoc @@ -3625,7 +3625,7 @@ You can use the `@EnableWebFlux` annotation in your Java config, as the followin ---- The preceding example registers a number of Spring WebFlux -<> and adapts to dependencies +<> and adapts to dependencies available on the classpath -- for JSON, XML, and others. @@ -3861,10 +3861,10 @@ which customizes Jackson's default properties with the following ones: It also automatically registers the following well-known modules if they are detected on the classpath: -* https://github.com/FasterXML/jackson-datatype-jdk7[`jackson-datatype-jdk7`]: Support for Java 7 types like `java.nio.file.Path`. * https://github.com/FasterXML/jackson-datatype-joda[`jackson-datatype-joda`]: Support for Joda-Time types. * https://github.com/FasterXML/jackson-datatype-jsr310[`jackson-datatype-jsr310`]: Support for Java 8 Date and Time API types. * https://github.com/FasterXML/jackson-datatype-jdk8[`jackson-datatype-jdk8`]: Support for other Java 8 types, such as `Optional`. +* https://github.com/FasterXML/jackson-module-kotlin[`jackson-module-kotlin`]: Support for Kotlin classes and data classes. diff --git a/src/docs/asciidoc/web/webmvc-functional.adoc b/src/docs/asciidoc/web/webmvc-functional.adoc index 68e6bfb2146..0df2d09d7c7 100644 --- a/src/docs/asciidoc/web/webmvc-functional.adoc +++ b/src/docs/asciidoc/web/webmvc-functional.adoc @@ -409,7 +409,7 @@ header: ---- RouterFunction route = RouterFunctions.route() .GET("/hello-world", accept(MediaType.TEXT_PLAIN), - request -> ServerResponse.ok().body("Hello World")); + request -> ServerResponse.ok().body("Hello World")).build(); ---- [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"] .Kotlin diff --git a/src/docs/asciidoc/web/webmvc.adoc b/src/docs/asciidoc/web/webmvc.adoc index 14e7d8aa7d4..da4f667bf30 100644 --- a/src/docs/asciidoc/web/webmvc.adoc +++ b/src/docs/asciidoc/web/webmvc.adoc @@ -5317,10 +5317,10 @@ This builder customizes Jackson's default properties as follows: It also automatically registers the following well-known modules if they are detected on the classpath: -* https://github.com/FasterXML/jackson-datatype-jdk7[jackson-datatype-jdk7]: Support for Java 7 types, such as `java.nio.file.Path`. * https://github.com/FasterXML/jackson-datatype-joda[jackson-datatype-joda]: Support for Joda-Time types. * https://github.com/FasterXML/jackson-datatype-jsr310[jackson-datatype-jsr310]: Support for Java 8 Date and Time API types. * https://github.com/FasterXML/jackson-datatype-jdk8[jackson-datatype-jdk8]: Support for other Java 8 types, such as `Optional`. +* https://github.com/FasterXML/jackson-module-kotlin[`jackson-module-kotlin`]: Support for Kotlin classes and data classes. NOTE: Enabling indentation with Jackson XML support requires https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.codehaus.woodstox%22%20AND%20a%3A%22woodstox-core-asl%22[`woodstox-core-asl`]