W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
作為生產(chǎn)者,足以更改Spring Cloud Contract驗(yàn)證程序以提供URL和包含合同的JAR依賴項(xiàng):
<plugin> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-contract-maven-plugin</artifactId> <configuration> <contractsMode>REMOTE</contractsMode> <contractsRepositoryUrl> https://link/to/your/nexus/or/artifactory/or/sth </contractsRepositoryUrl> <contractDependency> <groupId>com.example.standalone</groupId> <artifactId>contracts</artifactId> </contractDependency> </configuration> </plugin>
通過此設(shè)置,將從http://link/to/your/nexus/or/artifactory/or/sth
下載組ID為com.example.standalone
和工件為contracts
的JAR。然后將其解壓縮到本地臨時(shí)文件夾中,并選擇com/example/server
下的合同作為生成測(cè)試和存根的合同。根據(jù)該約定,當(dāng)完成一些不兼容的更改時(shí),生產(chǎn)者團(tuán)隊(duì)將知道哪些消費(fèi)者團(tuán)隊(duì)將被破壞。
其余流程看起來相同。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: