配置屬性

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

名稱 預設值 描述

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.