Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support wildcard patterns in @PropertySource locations [SPR-16785] #21325

Open
spring-projects-issues opened this issue May 1, 2018 · 1 comment
Labels
in: core status: pending-design-work type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented May 1, 2018

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

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented May 2, 2018

Stéphane Nicoll commented

Juergen Hoeller I have a user claiming this setup works for @Value. Do you know why that is?

@spring-projects-issues spring-projects-issues added the type: enhancement label Jan 11, 2019
@sbrannen sbrannen changed the title @PropertySource doesn't support regex paths like @PropertySource("classpath:prod/*.properties") [SPR-16785] @PropertySource doesn't support path patterns like @PropertySource("classpath:prod/*.properties") [SPR-16785] Jun 9, 2020
@sbrannen sbrannen changed the title @PropertySource doesn't support path patterns like @PropertySource("classpath:prod/*.properties") [SPR-16785] @PropertySource doesn't support path patterns like "classpath:prod/*.properties" [SPR-16785] Jun 9, 2020
@sbrannen sbrannen added the in: core label Jun 9, 2020
@sbrannen sbrannen removed this from the General Backlog milestone Jun 9, 2020
@sbrannen sbrannen added this to the 5.3 M2 milestone Jun 9, 2020
@sbrannen sbrannen changed the title @PropertySource doesn't support path patterns like "classpath:prod/*.properties" [SPR-16785] Support wildcard patterns in @PropertySource locations [SPR-16785] Jun 9, 2020
@sbrannen sbrannen added the status: pending-design-work label Jun 9, 2020
@jhoeller jhoeller removed this from the 5.3 M2 milestone Aug 8, 2020
@jhoeller jhoeller added this to the 5.3 RC1 milestone Aug 8, 2020
@jhoeller jhoeller removed this from the 5.3 RC1 milestone Aug 25, 2020
@jhoeller jhoeller added this to the 5.x Backlog milestone Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: pending-design-work type: enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants