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
          • 自定义模式
          • 使用 Context Paths
          • 使用 REST Docs
          • GraphQL
          • GRPC
        • 消息传递
        • Spring Cloud Contract Stub Runner
          • Snapshot 版本
          • 将存根发布为 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
    • “操作方法”指南
    • 如何查看HTTP服务器存根中注册的内容?

    如何查看HTTP服务器存根中注册的内容?

    您可以在 @AutoConfigureStubRunner、StubRunnerRule 或 StubRunnerExtension 上使用 mappingsOutputFolder 属性,为每个 artifact ID 导出所有映射。此外,还会附加启动给定存根服务器的端口。

    如何调试 WireMock 发送的映射、请求或响应? 如何引用文件中的文本?
    • 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™, and Apache Geode™ are trademarks or registered trademarks of the Apache Software Foundation in the United States and/or other countries. Java™, Java™ SE, Java™ EE, and OpenJDK™ are trademarks of Oracle and/or its affiliates. Kubernetes® is a registered trademark of the Linux Foundation in the United States and other countries. Linux® is the registered trademark of Linus Torvalds in the United States and other countries. Windows® and Microsoft® Azure are registered trademarks of Microsoft Corporation. “AWS” and “Amazon Web Services” are trademarks or registered trademarks of Amazon.com Inc. or its affiliates. All other trademarks and copyrights are property of their respective owners and are only mentioned for informative purposes. Other names may be trademarks of their respective owners.

    在所有 Spring 文档中搜索