常用應用程式屬性
可以在您的 application.properties
檔案、您的 application.yml
檔案或作為命令列開關中指定各種屬性。 此附錄提供了常見 Spring Cloud Bus 屬性的列表以及對使用這些屬性的底層類的引用。
屬性貢獻可能來自類路徑上的其他 jar 檔案,因此您不應將其視為詳盡的列表。 此外,您可以定義自己的屬性。 |
名稱 | 預設值 | 描述 |
---|---|---|
spring.cloud.bus.ack.destination-service |
希望監聽 acks 的服務。 預設為 null(表示所有服務)。 |
|
spring.cloud.bus.ack.enabled |
|
關閉 acks 的標誌(預設為開啟)。 |
spring.cloud.bus.content-type |
Bus mime-type。 |
|
spring.cloud.bus.destination |
訊息的 Spring Cloud Stream 目標名稱。 |
|
spring.cloud.bus.enabled |
|
指示是否啟用 Bus 的標誌。 |
spring.cloud.bus.env.enabled |
|
關閉環境變更事件的標誌(預設為開啟)。 |
spring.cloud.bus.id |
|
此應用程式例項的識別符號。 |
spring.cloud.bus.refresh.enabled |
|
關閉重新整理事件的標誌(預設為開啟)。 |
spring.cloud.bus.shutdown.enabled |
|
關閉關閉事件的標誌(預設為開啟)。 |
spring.cloud.bus.trace.enabled |
|
開啟 acks 追蹤的標誌(預設為關閉)。 |