My Spring boot app has this application structure:
Probably not the exact solution you're looking for, but you can also declare a property source bean:
https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/context/annotation/PropertySource.html