常用应用程序属性

各种属性可以在您的 application.properties 文件、application.yml 文件中指定,或作为命令行开关。本附录提供了常见的 Spring Cloud Bus 属性列表以及引用使用它们的底层类。

属性贡献可能来自您 classpath 中的其他 jar 文件,因此您不应将其视为详尽列表。此外,您还可以定义自己的属性。
名称 默认值 描述

spring.cloud.bus.ack.destination-service

希望侦听确认的服务。默认为 null(表示所有服务)。

spring.cloud.bus.ack.enabled

true

关闭确认的标志(默认开启)。

spring.cloud.bus.content-type

Bus 的 MIME 类型。

spring.cloud.bus.destination

用于消息的 Spring Cloud Stream 目标名称。

spring.cloud.bus.enabled

true

指示 Bus 是否已启用的标志。

spring.cloud.bus.env.enabled

true

关闭环境变更事件的标志(默认开启)。

spring.cloud.bus.id

application

此应用程序实例的标识符。

spring.cloud.bus.refresh.enabled

true

关闭刷新事件的标志(默认开启)。

spring.cloud.bus.shutdown.enabled

true

关闭关机事件的标志(默认开启)。

spring.cloud.bus.trace.enabled

开启确认跟踪的标志(默认关闭)。

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