Spring Spring Cloud Contract 工作的启动最低版本要求?
Spring Boot minimum version requirement for Spring Cloud Contract to work ?
我在我的客户端应用程序中使用最新的 Spring Boot 1.3,我想介绍 Spring 云合同:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.8.RELEASE</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
我能够从生产者端生成存根,但从消费者端,我无法调整 https://cloud.spring.io/spring-cloud-contract/ 上给出的示例。
我正在用 SpringJUnit4ClassRunner 替换测试运行器 SpringRunner(不适用于 Spring Boot 1.3),但是 @AutoConfigureStubRunner 注释似乎被忽略了。
我没有看到 Spring 云合同页面中提到的 Spring 引导版本有任何要求:有吗?
根据我的经验,似乎需要 Spring Boot 1.4+。升级到
后
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.3.RELEASE</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
我看到 @AutoConfigureStubRunner 已被考虑在内。
我在我的客户端应用程序中使用最新的 Spring Boot 1.3,我想介绍 Spring 云合同:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.8.RELEASE</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
我能够从生产者端生成存根,但从消费者端,我无法调整 https://cloud.spring.io/spring-cloud-contract/ 上给出的示例。
我正在用 SpringJUnit4ClassRunner 替换测试运行器 SpringRunner(不适用于 Spring Boot 1.3),但是 @AutoConfigureStubRunner 注释似乎被忽略了。
我没有看到 Spring 云合同页面中提到的 Spring 引导版本有任何要求:有吗?
根据我的经验,似乎需要 Spring Boot 1.4+。升级到
后<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.3.RELEASE</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
我看到 @AutoConfigureStubRunner 已被考虑在内。