Spring Cloud兼容性驗(yàn)證

2023-06-09 12:00 更新

由于某些用戶在設(shè)置Spring Cloud應(yīng)用程序時(shí)遇到問題,我們決定添加兼容性驗(yàn)證機(jī)制。如果您當(dāng)前的設(shè)置與Spring Cloud要求不兼容,則會斷開,并附上一份報(bào)告,說明出了什么問題。

目前,我們驗(yàn)證哪個(gè)版本的Spring Boot已添加到您的類路徑中。

報(bào)告范例

***************************
APPLICATION FAILED TO START
***************************

Description:

Your project setup is incompatible with our requirements due to following reasons:

- Spring Boot [2.1.0.RELEASE] is not compatible with this Spring Cloud release train


Action:

Consider applying the following actions:

- Change Spring Boot version to one of the following versions [1.2.x, 1.3.x] .
You can find the latest Spring Boot versions here [https://spring.io/projects/spring-boot#learn].
If you want to learn more about the Spring Cloud Release train compatibility, you can visit this page [https://spring.io/projects/spring-cloud#overview] and check the [Release Trains] section.

為了禁用此功能,請將?spring.cloud.compatibility-verifier.enabled?設(shè)置為?false?。如果要覆蓋兼容的Spring Boot版本,只需用兼容的Spring Boot版本的逗號分隔列表設(shè)置?spring.cloud.compatibility-verifier.compatible-boot-versions?屬性。


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號