-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Config Error with Quarkus 2.0 #18672
Comments
@radcortez has this already been fixed? |
Looking into the reproducer code, the We probably need to add an explicit warning that the annotation only works with interfaces. |
I confirm that the same code with the expected interface works as expected. I'll add a warning (or a better exception) to prevent the mistake. |
Implemented in smallrye/smallrye-config#619 |
@oo00spy00oo let us know if replacing the class with the interface works. Please, check the docs here: https://quarkus.io/guides/config-mappings#config-mappings |
Thanks @radcortez |
Describe the bug
In Migration Guide 2.0, I found:
Mapping of YAML Configuration to complex objects has been removed from io.quarkus.arc.config.ConfigProperties. Please use io.smallrye.config.ConfigMapping instead which is a safer alternative.
But I have an issue bellow, and I must revert to
io.quarkus.arc.config.ConfigProperties
to solve the issue.Expected behavior
Using
io.smallrye.config.ConfigMapping
without any problems.Actual behavior
No response
How to Reproduce?
application.yml:
Output of
uname -a
orver
Linux
Output of
java -version
openjdk version "11.0.9" 2020-10-20 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9+11) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9+11, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.0.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle
Additional information
No response
The text was updated successfully, but these errors were encountered: