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

Implicit filters to support things like spring.config.activate.on-profile #30

Merged
merged 3 commits into from
Feb 4, 2025

Conversation

agentgt
Copy link
Contributor

@agentgt agentgt commented Jan 31, 2025

Spring has an interesting property key that can be placed in property files that will only allow the properties to be collected if the profile is activated:

spring.config.activate.on-profile=prod
ignore=me

For example if the above profile of prod is not set ignore=me will not be picked up.

While this could be done by regular filters the problem is that it would need to be specified on every resource call.

Enter implicit filters which get run on every resource load.

@agentgt agentgt marked this pull request as ready for review February 4, 2025 20:19
@agentgt agentgt merged commit e4a6aa3 into jstachio:main Feb 4, 2025
4 checks passed
@agentgt agentgt deleted the implicit_filters branch February 4, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant