Developing Java Applications with Spring and Spring Boot
by Claudio Eduardo de Oliveira, Greg L. Turnquist, Alex Antonov
How it works...
In this recipe, we have explored how to add our own custom PropertySource that allowed us to bridge the existing system in the Spring Boot environment. Let's look into the inner workings of how the pieces fit together.
In the previous section, we learned how the different configuration definitions stacked up and what rules were used to overlay them on top of each other. This will help us to better understand how the bridging of an Apache Commons Configuration, using a custom PropertySource implementation, works. (This should not be confused with an @PropertySource annotation!)
In Chapter 23, Writing Custom Spring Boot Starters, we learned about the use of spring.factories, and so we already know that this file serves to define ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access