使用 Bootstrap 覆蓋屬性

如果啟用配置優先引導,則可以透過在應用程式配置中放置兩個屬性,讓客戶端設定覆蓋配置伺服器的配置。這些屬性位於配置伺服器使用的外部環境倉庫中(例如,Git、Vault、SVN 等)。

spring.cloud.config.allowOverride=true
spring.cloud.config.overrideNone=true

啟用 Bootstrap 並將這兩個屬性設定為 true 後,您將能夠在客戶端應用程式配置中覆蓋配置伺服器的配置。

© . This site is unofficial and not affiliated with VMware.