Add your own implementation of a PropertySource to your Environment
.
Warning: Properties used by @ConfigurationProperties
and @Value
annotations are only read once on application startup, so changing the actual property values at runtime will have no effect (until restarted).