ApplicationContextInitializer registering
ProcessRegistryPropertySource.
After you add
process-spring-boot-registry jar to the classpath of your application,
ProcessRegistry
will be used to resolve Spring properties.
@Value("service.invoicing.url")
String host;
ProcessRegistry will be attempted to be read before regular Spring property sources (for example before the
application.properties file). If the desired value will not be found in the process registry, Spring will fallback
to the other property sources.
By default the following process registries are aggregated by the Spring Boot container:
ZooKeeperProcessRegistry (if curator-framework is present in the classpath)
ClassPathProcessRegistry
InMemoryProcessRegistry
The above basically means that Spring Boot container attempts to read properties from the Fabric8 ZooKeeper registry,
then from the system properties and finally from the files located in the classpath.