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 咨询 Spring 团队学院 安全公告
    社区
    概述 活动 团队
    spring-cloud-contract 4.2.1
      • Spring Cloud Contract 参考文档
      • 法律信息
      • 入门
        • Spring Cloud Contract 介绍
        • 三秒钟快速浏览
        • 开发您的第一个基于 Spring Cloud Contract 的应用程序
        • 生产者端契约的消费者驱动契约(CDC)分步指南
        • 后续步骤
      • 使用 Spring Cloud Contract
        • 使用 Nexus 或 Artifactory 中的存根进行提供者契约测试
        • 使用 Git 中的存根进行提供者契约测试
        • 生产者端契约的消费者驱动契约
        • 使用外部仓库中契约的消费者驱动契约
        • 生产者端契约推送到 Git 的消费者驱动契约
        • 对于非 Spring 应用,使用 Artifactory 中的存根进行提供者契约测试
        • 在非 JVM 世界中,使用 Artifactory 中的存根进行提供者契约测试
        • 使用 REST Docs 和 Nexus 或 Artifactory 中的存根进行提供者契约测试
      • Spring Cloud Contract 功能
        • 契约 DSL
          • 常见顶级元素
          • 动态属性
        • Spring Cloud Contract 集成
          • JAX-RS
          • 使用 WebTestClient 的 WebFlux
          • 使用 Explicit 模式的 WebFlux
          • 自定义模式
          • 使用上下文路径
          • 使用 REST Docs
          • GraphQL
          • GRPC
        • 消息传递
        • Spring Cloud Contract Stub Runner
          • 快照版本
          • 发布存根为 JAR 包
          • Stub Runner Core
          • Stub Runner JUnit Rule 和 Stub Runner JUnit5 扩展
          • Stub Runner Spring Cloud
          • 使用 Stub Runner Boot 应用程序
          • 消费者驱动契约:每个消费者一个存根
          • 从指定位置获取存根或契约定义
          • 在运行时生成存根
          • 没有存根时失败
          • 通用属性
        • Spring Cloud Contract WireMock
      • 构建工具
        • Docker 项目
        • Gradle 项目
        • Maven 项目
      • “操作方法”指南
        • 为什么使用 Spring Cloud Contract?
        • 如何使用 Groovy 以外的语言编写契约?
        • 如何为契约提供动态值?
        • 如何进行存根版本控制?
        • 如何使用通用仓库来存储契约,而不是将其与生产者一起存储?
        • 如何使用 Git 作为契约和存根的存储?
        • 如何调试生成的测试客户端发送的请求/响应?
        • 如何调试 WireMock 发送的映射、请求或响应?
        • 如何查看 HTTP 服务器存根中注册了哪些内容?
        • 如何引用文件中的文本?
        • 如何从 Spring Cloud Contract 契约生成 YAML 或 X 文件?
        • 如何处理传递依赖?
        • 如何从契约生成 Spring REST Docs 片段?
        • 如何从指定位置使用存根
        • 如何在运行时生成存根
        • 如果没有契约或存根,如何使构建通过?
        • 如何标记契约正在进行中?
      • Spring Cloud Contract 自定义
        • DSL 自定义
        • WireMock 自定义
        • 使用可插拔架构
      • 通用应用程序属性
        • 如何构建 Spring Cloud Contract
        • 配置属性
        • YML Schema
    编辑此页面 GitHub 项目 Stack Overflow
    • spring-cloud-contract
    • Spring Cloud Contract 功能
    • Spring Cloud Contract Stub Runner
    • 发布存根为 JAR 包

    发布存根为 JAR 包

    将存根发布为 jar 包的最简单方法是集中化存根的存放方式。例如,您可以将它们作为 jar 包存放在 Maven 仓库中。

    对于 Maven 和 Gradle,设置已准备好工作。但是,如果需要,您可以对其进行自定义。

    请查看这些 URL 获取 Maven 和 Gradle 示例。

    快照版本 Stub Runner Core
    • 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

    版权所有 © 2005 -Broadcom。保留所有权利。“Broadcom”一词指 Broadcom Inc. 和/或其子公司。
    使用条款 • 隐私政策 • 商标指南 • 感谢 • 您的加州隐私权利 • Cookie 设置

    Apache®、Apache Tomcat®、Apache Kafka®、Apache Cassandra™ 和 Apache Geode™ 是 Apache Software Foundation 在美国和/或其他国家的商标或注册商标。Java™、Java™ SE、Java™ EE 和 OpenJDK™ 是 Oracle 和/或其关联公司的商标。Kubernetes® 是 Linux Foundation 在美国和其他国家的注册商标。Linux® 是 Linus Torvalds 在美国和其他国家的注册商标。Windows® 和 Microsoft® Azure 是 Microsoft Corporation 的注册商标。“AWS”和“Amazon Web Services”是 Amazon.com Inc. 或其关联公司的商标或注册商标。所有其他商标和版权均为其各自所有者的财产,仅出于信息目的提及。其他名称可能是其各自所有者的商标。

    在所有 Spring 文档中搜索