类 RSocketPortInfoApplicationContextInitializer

java.lang.Object
org.springframework.boot.rsocket.context.RSocketPortInfoApplicationContextInitializer
所有已实现的接口:
ApplicationContextInitializer<ConfigurableApplicationContext>

public class RSocketPortInfoApplicationContextInitializer extends Object implements ApplicationContextInitializer<ConfigurableApplicationContext>
ApplicationContextInitializer that sets Environment properties for the ports that RSocketServer servers are actually listening on. The property "local.rsocket.server.port" can be injected directly into tests using @Value or obtained through the Environment.

Properties are automatically propagated up to any parent context.

从以下版本开始:
2.2.0
作者:
Verónica Vásquez, Eddú Meléndez