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

Add @ConfigIgnore annotation for ignorable @ConfigProperties #9762

Closed
cpmoore opened this issue Jun 3, 2020 · 0 comments · Fixed by #9771
Closed

Add @ConfigIgnore annotation for ignorable @ConfigProperties #9762

cpmoore opened this issue Jun 3, 2020 · 0 comments · Fixed by #9771
Labels
kind/enhancement New feature or request
Milestone

Comments

@cpmoore
Copy link
Contributor

cpmoore commented Jun 3, 2020

I believe a @ConfigIgnore annotation should be added for fields that you don't want to be configured via @ConfigProperties

Currently if a class has an @ConfigProperties annotation it attempts to configure every variable in that class. This lead to an issue where I was trying to use @Inject to set a variable.
I was just using my configuration class as a single point of reference for that variable instead of having to inject it everywhere else.

@cpmoore cpmoore added the kind/enhancement New feature or request label Jun 3, 2020
geoand added a commit to geoand/quarkus that referenced this issue Jun 4, 2020
geoand added a commit to geoand/quarkus that referenced this issue Jun 4, 2020
geoand added a commit that referenced this issue Jun 4, 2020
Allow certain @ConfigProperties fields to be ignored
@gsmet gsmet added this to the 1.6.0 - master milestone Jun 10, 2020
johnaohara pushed a commit to johnaohara/quarkus that referenced this issue Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants