mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Update JsonComponent documentation
See gh-16544
This commit is contained in:
parent
c74badd4f2
commit
750d251ae8
@ -2361,9 +2361,9 @@ https://github.com/FasterXML/jackson-docs/wiki/JacksonHowToCustomSerializers[reg
|
||||
a module], but Spring Boot provides an alternative `@JsonComponent` annotation that makes
|
||||
it easier to directly register Spring Beans.
|
||||
|
||||
You can use the `@JsonComponent` annotation directly on `JsonSerializer` or
|
||||
`JsonDeserializer` implementations. You can also use it on classes that contain
|
||||
serializers/deserializers as inner classes, as shown in the following example:
|
||||
You can use the `@JsonComponent` annotation directly on `JsonSerializer`,
|
||||
`JsonDeserializer` or `KeyDeserializer` implementations. You can also use it on classes
|
||||
that contain serializers/deserializers as inner classes, as shown in the following example:
|
||||
|
||||
[source,java,indent=0]
|
||||
----
|
||||
|
Loading…
Reference in New Issue
Block a user