Skip to content

Commit 750d251

Browse files
committed
Update JsonComponent documentation
See gh-16544
1 parent c74badd commit 750d251

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -2361,9 +2361,9 @@ https://github.com/FasterXML/jackson-docs/wiki/JacksonHowToCustomSerializers[reg
23612361
a module], but Spring Boot provides an alternative `@JsonComponent` annotation that makes
23622362
it easier to directly register Spring Beans.
23632363

2364-
You can use the `@JsonComponent` annotation directly on `JsonSerializer` or
2365-
`JsonDeserializer` implementations. You can also use it on classes that contain
2366-
serializers/deserializers as inner classes, as shown in the following example:
2364+
You can use the `@JsonComponent` annotation directly on `JsonSerializer`,
2365+
`JsonDeserializer` or `KeyDeserializer` implementations. You can also use it on classes
2366+
that contain serializers/deserializers as inner classes, as shown in the following example:
23672367

23682368
[source,java,indent=0]
23692369
----

0 commit comments

Comments
 (0)