配置属性

您可以在下面找到配置属性列表。

名称 默认值 描述

spring.cloud.contract.stubrunner.amqp.enabled

是否启用对 Stub Runner 和 AMQP 的支持。

spring.cloud.contract.stubrunner.amqp.mockCOnnection

true

是否启用对 Stub Runner 和 AMQP 模拟连接工厂的支持。

spring.cloud.contract.stubrunner.classifier

stubs

默认情况下,在 ivy 坐标中用于存根的分类器。

spring.cloud.contract.stubrunner.cloud.consul.enabled

true

是否在 Consul 中启用存根注册。

spring.cloud.contract.stubrunner.cloud.delegate.enabled

true

是否启用 DiscoveryClient 的 Stub Runner 实现。

spring.cloud.contract.stubrunner.cloud.enabled

true

是否启用 Spring Cloud 对 Stub Runner 的支持。

spring.cloud.contract.stubrunner.cloud.eureka.enabled

true

是否在 Eureka 中启用存根注册。

spring.cloud.contract.stubrunner.cloud.loadbalancer.enabled

true

是否启用 Stub Runner 的 Spring Cloud 负载均衡器集成。

spring.cloud.contract.stubrunner.cloud.stubbed.discovery.enabled

true

是否应为 Stub Runner 模拟服务发现。如果设置为 false,存根将注册到真实的服务发现中。

spring.cloud.contract.stubrunner.cloud.zookeeper.enabled

true

是否在 Zookeeper 中启用存根注册。

spring.cloud.contract.stubrunner.consumer-name

您可以将此字段的值设置为此参数,以覆盖默认的 {@code spring.application.name}。

spring.cloud.contract.stubrunner.delete-stubs-after-test

true

如果设置为 {@code false},则在运行测试后不会从临时文件夹中删除存根。

spring.cloud.contract.stubrunner.fail-on-no-stubs

true

启用后,此标志将告知 stub runner 在未找到存根/契约时抛出异常。

spring.cloud.contract.stubrunner.generate-stubs

启用后,此标志将告知 stub runner 不加载生成的存根,而是在运行时将找到的契约转换为存根格式并运行这些存根。

spring.cloud.contract.stubrunner.http-server-stub-configurer

HTTP 服务器存根的配置。

spring.cloud.contract.stubrunner.ids

[]

以 "ivy" 表示法运行的存根 ID([groupId]:artifactId:[version]:[classifier][:port])。{@code groupId}、{@code classifier}、{@code version} 和 {@code port} 可以是可选的。

spring.cloud.contract.stubrunner.ids-to-service-ids

Ivy 表示法 ID 到应用程序中 serviceId 的映射。示例:"a:b" → "myService" "artifactId" → "myOtherService"

spring.cloud.contract.stubrunner.integration.enabled

true

是否启用 Stub Runner 与 Spring Integration 的集成。

spring.cloud.contract.stubrunner.jms.enabled

true

是否启用 Stub Runner 与 Spring JMS 的集成。

spring.cloud.contract.stubrunner.kafka.enabled

true

是否启用 Stub Runner 与 Spring Kafka 的集成。

spring.cloud.contract.stubrunner.kafka.initializer.enabled

true

是否允许 Stub Runner 负责轮询消息,而不是 KafkaStubMessages 组件。后者仅应用于生产者端。

spring.cloud.contract.stubrunner.mappings-output-folder

将每个 HTTP 服务器的映射转储到选定的文件夹。

spring.cloud.contract.stubrunner.max-port

15000

自动启动的 WireMock 服务器的端口最大值。

spring.cloud.contract.stubrunner.min-port

10000

自动启动的 WireMock 服务器的端口最小值。

spring.cloud.contract.stubrunner.password

仓库密码。

spring.cloud.contract.stubrunner.properties

可以传递给自定义 {@link org.springframework.cloud.contract.stubrunner.StubDownloaderBuilder} 的属性映射。

spring.cloud.contract.stubrunner.proxy-host

仓库代理主机。

spring.cloud.contract.stubrunner.proxy-port

仓库代理端口。

spring.cloud.contract.stubrunner.server-id

spring.cloud.contract.stubrunner.stream.enabled

true

是否启用 Stub Runner 与 Spring Cloud Stream 的集成。

spring.cloud.contract.stubrunner.stubs-mode

选择存根的来源。

spring.cloud.contract.stubrunner.stubs-per-consumer

是否只将此特定消费者的存根注册到 HTTP 服务器存根中。

spring.cloud.contract.stubrunner.username

仓库用户名。

© . This site is unofficial and not affiliated with VMware.