Quarkus @ConfigProperty does not inject value #40128
Replies: 2 comments
-
/cc @radcortez (config) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @naamabedev2. Can you please provide us with a reproducer? Config injection works for CDI Beans. Is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using quarkus @ConfigProperty annotation in order to inject value to a String data member:
In application.properties file I have this value: order=order2
the value of orderMessage stay null. I have tried using the following option instead of injection:
orderMessage = ConfigProvider.getConfig().getValue("order", String.class);
and it is working. how can I make this work with injection (by using @ConfigProperty annotation)?
(I have tried using the @singleton annotation for the class ActiveMQRout but still did not work. I also added getter and setter but still did not work)
Beta Was this translation helpful? Give feedback.
All reactions