Common application properties
可以在你的 application.properties
文件内、application.yml
文件内或作为命令行开关指定各种属性。此附录提供了常见 Spring Cloud Bus 属性及其引用它们的底层类的列表。
Various properties can be specified inside your application.properties
file, inside your application.yml
file, or as command line switches.
This appendix provides a list of common Spring Cloud Bus properties and references to the underlying classes that consume them.
属性贡献可以来自类路径上的其他 jar 文件,因此你不应该将此视为一份详尽的清单。此外,你可以定义自己的属性。 |
Property contributions can come from additional jar files on your classpath, so you should not consider this an exhaustive list. Also, you can define your own properties. |
Name | Default | Description |
---|---|---|
spring.cloud.bus.ack.destination-service |
Service that wants to listen to acks. By default null (meaning all services). |
|
spring.cloud.bus.ack.enabled |
|
Flag to switch off acks (default on). |
spring.cloud.bus.content-type |
The bus mime-type. |
|
spring.cloud.bus.destination |
Name of Spring Cloud Stream destination for messages. |
|
spring.cloud.bus.enabled |
|
Flag to indicate that the bus is enabled. |
spring.cloud.bus.env.enabled |
|
Flag to switch off environment change events (default on). |
spring.cloud.bus.id |
|
The identifier for this application instance. |
spring.cloud.bus.refresh.enabled |
|
Flag to switch off refresh events (default on). |
spring.cloud.bus.trace.enabled |
|
Flag to switch on tracing of acks (default off). |