@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited @ImportAutoConfiguration @PropertyMapping(value="spring.test.webclient.mockrestserviceserver") public @interface AutoConfigureMockRestServiceServer
MockRestServiceServer
. Only useful when a single
call is made to RestTemplateBuilder
. If multiple
RestTemplates
are in use, inject
MockServerRestTemplateCustomizer
and use
getServer(RestTemplate)
or bind a MockRestServiceServer
directly.MockServerRestTemplateCustomizer
Modifier and Type | Optional Element and Description |
---|---|
boolean |
enabled
If
MockServerRestTemplateCustomizer should be enabled and
MockRestServiceServer beans should be registered. |
public abstract boolean enabled
MockServerRestTemplateCustomizer
should be enabled and
MockRestServiceServer
beans should be registered. Defaults to true
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.