Pratapi Hemant Patel opened SPR-16785 and commented
Currently @PropertySource
supports only absolute path
@PropertySource("classpath:prod/a.properties") // supported
But regex are not supported.
@PropertySource("classpath:prod/*.properties") // not supported
Affects: 4.3.16
Reference URL: https://stackoverflow.com/questions/50079355/add-all-properties-in-a-given-resources-folder-to-springs-environment-class
Comment From: spring-projects-issues
Stéphane Nicoll commented
Juergen Hoeller I have a user claiming this setup works for @Value. Do you know why that is?
Comment From: tiagotds
Any update regarding this subject?