mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Add reference to the new RestClient class in documentation
See gh-37726
This commit is contained in:
parent
fbec06a134
commit
d0cadd9c4a
@ -159,7 +159,7 @@ You can then use `@ImportRuntimeHints` on any `@Configuration` class (for exampl
|
|||||||
|
|
||||||
If you have classes which need binding (mostly needed when serializing or deserializing JSON), you can use {spring-framework-docs}/core.html#aot-hints-register-reflection-for-binding[`@RegisterReflectionForBinding`] on any bean.
|
If you have classes which need binding (mostly needed when serializing or deserializing JSON), you can use {spring-framework-docs}/core.html#aot-hints-register-reflection-for-binding[`@RegisterReflectionForBinding`] on any bean.
|
||||||
Most of the hints are automatically inferred, for example when accepting or returning data from a `@RestController` method.
|
Most of the hints are automatically inferred, for example when accepting or returning data from a `@RestController` method.
|
||||||
But when you work with `WebClient` or `RestTemplate` directly, you might need to use `@RegisterReflectionForBinding`.
|
But when you work with `WebClient`, `RestClient` or `RestTemplate` directly, you might need to use `@RegisterReflectionForBinding`.
|
||||||
|
|
||||||
[[native-image.advanced.custom-hints.testing]]
|
[[native-image.advanced.custom-hints.testing]]
|
||||||
==== Testing custom hints
|
==== Testing custom hints
|
||||||
|
Loading…
Reference in New Issue
Block a user