批注接口 AutoConfigureWebClient
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@AutoConfigureJson
@ImportAutoConfiguration
@PropertyMapping("spring.test.webclient")
public @interface AutoConfigureWebClient
Annotation that can be applied to a test class to enable and configure
auto-configuration of web clients.
- 从以下版本开始:
- 1.4.0
- 作者:
- Stephane Nicoll, Phillip Webb
-
可选元素概要
可选元素
-
元素详细资料
-
registerRestTemplate
boolean registerRestTemplateIf aRestTemplate
bean should be registered. Defaults tofalse
with the assumption that theRestTemplateBuilder
will be used.- 返回:
- if a
RestTemplate
bean should be added.
- 默认值:
false
-