Skip to content

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