You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using @ConfigProperty complains about a missing converter SRCFG02007: No Converter registered for class Target:
@ConfigProperty("targets")
List<Target> targets
Using @ConfigMapping with an empty prefix tries to map all other properties from application properties with xyz does not map to any root. I know I could disable validation globally using smallrye.config.mapping.validate-unknown=false but this is not desirable.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I am trying to inject a configuration like this into a service:
Using
@ConfigProperty
complains about a missing converterSRCFG02007: No Converter registered for class Target
:Using
@ConfigMapping
with an empty prefix tries to map all other properties from application properties withxyz does not map to any root
. I know I could disable validation globally usingsmallrye.config.mapping.validate-unknown=false
but this is not desirable.I also tried this but it injects nothing:
This works neither:
Thanks for any hints!
Beta Was this translation helpful? Give feedback.
All reactions