Spring
為何選擇 Spring
概述 微服務 響應式 事件驅動 雲 Web 應用 無伺服器 批處理
學習
概述 快速入門 指南 部落格
專案
概述 Spring Boot Spring Framework Spring Cloud Spring Cloud Data Flow Spring Data Spring Integration Spring Batch Spring Security 檢視所有專案
  • 開發工具
  • Spring Tools 4 Spring Initializr
    學院
    課程 獲得認證
    解決方案
    概述 Spring Runtime Spring Consulting Spring Academy For Teams 安全公告
    社群
    概述 活動 團隊
    spring-cloud-contract 4.2.1
      • Spring Cloud Contract 參考文件
      • 法律宣告
      • 入門
        • Spring Cloud Contract 簡介
        • 三秒鐘速覽
        • 開發您的第一個基於 Spring Cloud Contract 的應用
        • 基於生產者端契約的消費者驅動契約(CDC)分步指南
        • 後續步驟
      • 使用 Spring Cloud Contract
        • 使用 Nexus 或 Artifactory 中的 Stub 進行生產者契約測試
        • 使用 Git 中的 Stub 進行生產者契約測試
        • 基於生產者端契約的消費者驅動契約
        • 使用外部倉庫中的契約進行消費者驅動契約
        • 基於生產者端契約並將契約推送到 Git 的消費者驅動契約
        • 使用 Artifactory 中的 Stub 對非 Spring 應用進行生產者契約測試
        • 在非 JVM 環境下使用 Artifactory 中的 Stub 進行生產者契約測試
        • 結合 REST Docs 和 Nexus 或 Artifactory 中的 Stub 進行生產者契約測試
      • Spring Cloud Contract 特性
        • 契約 DSL
          • 通用頂層元素
          • 動態屬性
        • Spring Cloud Contract 整合
          • JAX-RS
          • 結合 WebTestClient 的 WebFlux
          • 顯式模式下的 WebFlux
          • 自定義模式
          • 使用上下文路徑
          • 使用 REST Docs
          • GraphQL
          • GRPC
        • 訊息傳遞
        • Spring Cloud Contract Stub Runner
          • 快照版本
          • 將 Stub 釋出為 JAR
          • Stub Runner Core
          • Stub Runner JUnit Rule 和 Stub Runner JUnit5 Extension
          • Stub Runner Spring Cloud
          • 使用 Stub Runner Boot 應用
          • 消費者驅動契約:每個消費者一個 Stub
          • 從指定位置獲取 Stub 或契約定義
          • 在執行時生成 Stub
          • 沒有 Stub 時失敗
          • 通用屬性
        • Spring Cloud Contract WireMock
      • 構建工具
        • Docker 專案
        • Gradle 專案
        • Maven 專案
      • “如何做” 指南
        • 為何使用 Spring Cloud Contract?
        • 如何使用 Groovy 以外的語言編寫契約?
        • 如何為契約提供動態值?
        • 如何進行 Stub 版本控制?
        • 如何使用通用倉庫儲存契約而不是與生產者一起儲存?
        • 如何使用 Git 作為契約和 Stub 的儲存?
        • 如何除錯生成的測試客戶端傳送的請求/響應?
        • 如何除錯 WireMock 傳送的對映、請求或響應?
        • 如何檢視 HTTP 伺服器 Stub 中註冊了什麼?
        • 如何從檔案引用文字?
        • 如何從 Spring Cloud Contract 契約生成 YAML 或 X 檔案?
        • 如何處理傳遞依賴?
        • 如何從契約生成 Spring REST Docs 程式碼片段?
        • 如何從指定位置使用 Stub
        • 如何在執行時生成 Stub
        • 如何在沒有契約或 Stub 時使構建透過
        • 如何標記契約正在進行中
      • Spring Cloud Contract 定製
        • DSL 定製
        • WireMock 定製
        • 使用可插拔架構
      • 通用應用屬性
        • 如何構建 Spring Cloud Contract
        • 配置屬性
        • YML Schema
    編輯此頁面 GitHub 專案 Stack Overflow
    • spring-cloud-contract
    • 使用 Spring Cloud Contract

    使用 Spring Cloud Contract

    本節將更詳細地介紹如何使用 Spring Cloud Contract。它涵蓋了諸如如何使用 Spring Cloud Contract 的流程等主題。我們還介紹了一些 Spring Cloud Contract 的最佳實踐。

    如果您是剛開始接觸 Spring Cloud Contract,您應該先閱讀入門指南,然後再深入本節。

    後續步驟 使用 Nexus 或 Artifactory 中的 Stub 進行生產者契約測試
    • spring-cloud-contract
      • 4.3.0-SNAPSHOT
      • 4.3.0-RC1
      • 4.2.1當前
      • 4.1.6-SNAPSHOT
      • 4.1.5
    • 相關 Spring 文件
      • Spring Boot
      • Spring Framework
      • Spring Cloud
        • Spring Cloud Build
        • Spring Cloud Bus
        • Spring Cloud Circuit Breaker
        • Spring Cloud Commons
        • Spring Cloud Config
        • Spring Cloud Consul
        • Spring Cloud Contract
        • Spring Cloud Function
        • Spring Cloud Gateway
        • Spring Cloud Kubernetes
        • Spring Cloud Netflix
        • Spring Cloud OpenFeign
        • Spring Cloud Stream
        • Spring Cloud Task
        • Spring Cloud Vault
        • Spring Cloud Zookeeper
      • Spring Data
        • Spring Data Cassandra
        • Spring Data Commons
        • Spring Data Couchbase
        • Spring Data Elasticsearch
        • Spring Data JPA
        • Spring Data KeyValue
        • Spring Data LDAP
        • Spring Data MongoDB
        • Spring Data Neo4j
        • Spring Data Redis
        • Spring Data JDBC & R2DBC
        • Spring Data REST
      • Spring Integration
      • Spring Batch
      • Spring Security
        • Spring Authorization Server
        • Spring LDAP
        • Spring Security Kerberos
        • Spring Session
        • Spring Vault
      • Spring AI
      • Spring AMQP
      • Spring CLI
      • Spring GraphQL
      • Spring for Apache Kafka
      • Spring Modulith
      • Spring for Apache Pulsar
      • Spring Shell
    • 所有文件...
    Spring

    Copyright © 2005 -博通公司 (Broadcom)。保留所有權利。“Broadcom”一詞指博通公司和/或其子公司。
    使用條款 • 隱私 • 商標指南 • 致謝 • 您的加州隱私權 • Cookie 設定

    Apache®、Apache Tomcat®、Apache Kafka®、Apache Cassandra™ 和 Apache Geode™ 是 Apache 軟體基金會在美國和/或其他國家/地區的商標或註冊商標。Java™、Java™ SE、Java™ EE 和 OpenJDK™ 是 Oracle 和/或其關聯公司的商標。Kubernetes® 是 Linux 基金會在美國和其他國家/地區的註冊商標。Linux® 是 Linus Torvalds 在美國和其他國家/地區的註冊商標。Windows® 和 Microsoft® Azure 是微軟公司 (Microsoft Corporation) 的註冊商標。“AWS”和“Amazon Web Services”是 Amazon.com Inc. 或其關聯公司的商標或註冊商標。所有其他商標和版權均為其各自所有者的財產,僅用於資訊目的提及。其他名稱可能是其各自所有者的商標。

    搜尋所有 Spring 文件