40. 寻址实例

HTTP endpoints 接受“destination”参数 e.g. “/bus/refresh?destination=customers:9000”,其中目标是ApplicationContext ID。如果 ID 由 Bus 上的实例拥有,那么它将处理消息,所有其他实例将忽略它。 Spring Boot 将ContextIdApplicationContextInitializer中的 ID 设置为默认情况下spring.application.name,active profiles 和server.port的组合。