This version is still in development and is not considered stable yet. For the latest stable version, please use spring-cloud-contract 5.0.0!spring-doc.cn

Configuration Properties

Below you can find a list of configuration properties.spring-doc.cn

Name Default Description

spring.cloud.contract.stubrunner.amqp.enabledspring-doc.cn

falsespring-doc.cn

Whether to enable support for Stub Runner and AMQP.spring-doc.cn

spring.cloud.contract.stubrunner.amqp.mockCOnnectionspring-doc.cn

truespring-doc.cn

Whether to enable support for Stub Runner and AMQP mocked connection factory.spring-doc.cn

spring.cloud.contract.stubrunner.classifierspring-doc.cn

stubsspring-doc.cn

The classifier to use by default in ivy co-ordinates for a stub.spring-doc.cn

spring.cloud.contract.stubrunner.cloud.consul.enabledspring-doc.cn

truespring-doc.cn

Whether to enable stubs registration in Consul.spring-doc.cn

spring.cloud.contract.stubrunner.cloud.delegate.enabledspring-doc.cn

truespring-doc.cn

Whether to enable DiscoveryClient’s Stub Runner implementation.spring-doc.cn

spring.cloud.contract.stubrunner.cloud.enabledspring-doc.cn

truespring-doc.cn

Whether to enable Spring Cloud support for Stub Runner.spring-doc.cn

spring.cloud.contract.stubrunner.cloud.eureka.enabledspring-doc.cn

truespring-doc.cn

Whether to enable stubs registration in Eureka.spring-doc.cn

spring.cloud.contract.stubrunner.cloud.loadbalancer.enabledspring-doc.cn

truespring-doc.cn

Whether to enable Stub Runner’s Spring Cloud Load Balancer integration.spring-doc.cn

spring.cloud.contract.stubrunner.cloud.stubbed.discovery.enabledspring-doc.cn

truespring-doc.cn

Whether Service Discovery should be stubbed for Stub Runner. If set to false, stubs will get registered in real service discovery.spring-doc.cn

spring.cloud.contract.stubrunner.cloud.zookeeper.enabledspring-doc.cn

truespring-doc.cn

Whether to enable stubs registration in Zookeeper.spring-doc.cn

spring.cloud.contract.stubrunner.consumer-namespring-doc.cn

You can override the default {@code spring.application.name} of this field by setting a value to this parameter.spring-doc.cn

spring.cloud.contract.stubrunner.delete-stubs-after-testspring-doc.cn

truespring-doc.cn

If set to {@code false} will NOT delete stubs from a temporary folder after running tests.spring-doc.cn

spring.cloud.contract.stubrunner.fail-on-no-stubsspring-doc.cn

truespring-doc.cn

When enabled, this flag will tell stub runner to throw an exception when no stubs / contracts were found.spring-doc.cn

spring.cloud.contract.stubrunner.generate-stubsspring-doc.cn

falsespring-doc.cn

When enabled, this flag will tell stub runner to not load the generated stubs, but convert the found contracts at runtime to a stub format and run those stubs.spring-doc.cn

spring.cloud.contract.stubrunner.http-server-stub-configurerspring-doc.cn

Configuration for an HTTP server stub.spring-doc.cn

spring.cloud.contract.stubrunner.idsspring-doc.cn

[]spring-doc.cn

The ids of the stubs to run in "ivy" notation ([groupId]:artifactId:[version]:[classifier][:port]). {@code groupId}, {@code classifier}, {@code version} and {@code port} can be optional.spring-doc.cn

spring.cloud.contract.stubrunner.ids-to-service-idsspring-doc.cn

Mapping of Ivy notation based ids to serviceIds inside your application. Example "a:b" → "myService" "artifactId" → "myOtherService"spring-doc.cn

spring.cloud.contract.stubrunner.integration.enabledspring-doc.cn

truespring-doc.cn

Whether to enable Stub Runner integration with Spring Integration.spring-doc.cn

spring.cloud.contract.stubrunner.jms.enabledspring-doc.cn

truespring-doc.cn

Whether to enable Stub Runner integration with Spring JMS.spring-doc.cn

spring.cloud.contract.stubrunner.kafka.enabledspring-doc.cn

truespring-doc.cn

Whether to enable Stub Runner integration with Spring Kafka.spring-doc.cn

spring.cloud.contract.stubrunner.kafka.initializer.enabledspring-doc.cn

truespring-doc.cn

Whether to allow Stub Runner to take care of polling for messages instead of the KafkaStubMessages component. The latter should be used only on the producer side.spring-doc.cn

spring.cloud.contract.stubrunner.mappings-output-folderspring-doc.cn

Dumps the mappings of each HTTP server to the selected folder.spring-doc.cn

spring.cloud.contract.stubrunner.max-portspring-doc.cn

15000spring-doc.cn

Max value of a port for the automatically started WireMock server.spring-doc.cn

spring.cloud.contract.stubrunner.min-portspring-doc.cn

10000spring-doc.cn

Min value of a port for the automatically started WireMock server.spring-doc.cn

spring.cloud.contract.stubrunner.passwordspring-doc.cn

Repository password.spring-doc.cn

spring.cloud.contract.stubrunner.propertiesspring-doc.cn

Map of properties that can be passed to custom {@link org.springframework.cloud.contract.stubrunner.StubDownloaderBuilder}.spring-doc.cn

spring.cloud.contract.stubrunner.proxy-hostspring-doc.cn

Repository proxy host.spring-doc.cn

spring.cloud.contract.stubrunner.proxy-portspring-doc.cn

Repository proxy port.spring-doc.cn

spring.cloud.contract.stubrunner.server-idspring-doc.cn

spring.cloud.contract.stubrunner.stream.enabledspring-doc.cn

truespring-doc.cn

Whether to enable Stub Runner integration with Spring Cloud Stream.spring-doc.cn

spring.cloud.contract.stubrunner.stubs-modespring-doc.cn

Pick where the stubs should come from.spring-doc.cn

spring.cloud.contract.stubrunner.stubs-per-consumerspring-doc.cn

falsespring-doc.cn

Should only stubs for this particular consumer get registered in HTTP server stub.spring-doc.cn

spring.cloud.contract.stubrunner.usernamespring-doc.cn

Repository username.spring-doc.cn