Skip to content

Commit eae0963

Browse files
committed
Refine Kotlin serialization reference documentation
Closes gh-34437
1 parent 6bdb9bb commit eae0963

File tree

1 file changed

+5
-10
lines changed
  • framework-docs/modules/ROOT/pages/languages/kotlin

1 file changed

+5
-10
lines changed

framework-docs/modules/ROOT/pages/languages/kotlin/web.adoc

+5-10
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,9 @@ mockMvc.get("/person/{name}", "Lee") {
7979
== Kotlin multiplatform serialization
8080

8181
{kotlin-github-org}/kotlinx.serialization[Kotlin multiplatform serialization] is
82-
supported in Spring MVC, Spring WebFlux and Spring Messaging (RSocket). The builtin support currently targets CBOR, JSON, and ProtoBuf formats.
83-
84-
To enable it, follow {kotlin-github-org}/kotlinx.serialization#setup[those instructions] to add the related dependency and plugin.
85-
With Spring MVC and WebFlux, both Kotlin serialization and Jackson will be configured by default if they are in the classpath since
86-
Kotlin serialization is designed to serialize only Kotlin classes annotated with `@Serializable`.
87-
With Spring Messaging (RSocket), make sure that neither Jackson, GSON or JSONB are in the classpath if you want automatic configuration,
88-
if Jackson is needed configure `KotlinSerializationJsonMessageConverter` manually.
89-
90-
91-
82+
supported in Spring MVC, Spring WebFlux and Spring Messaging (RSocket). The builtin support currently targets CBOR, JSON,
83+
and ProtoBuf formats.
9284

85+
To enable it, follow {kotlin-github-org}/kotlinx.serialization#setup[those instructions] to add the related dependencies
86+
and plugin. With Spring MVC and WebFlux, Kotlin serialization is configured by default if it is in the classpath and
87+
other variants like Jackson are not. If needed, configure the converters or codecs manually.

0 commit comments

Comments
 (0)