Spring Cloud兼容性驗證

2023-06-09 12:00 更新

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

目前,我們驗證哪個版本的Spring Boot已添加到您的類路徑中。

報告范例

***************************
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?設置為?false?。如果要覆蓋兼容的Spring Boot版本,只需用兼容的Spring Boot版本的逗號分隔列表設置?spring.cloud.compatibility-verifier.compatible-boot-versions?屬性。


以上內容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號