I am trying to load a monetary amount from application.yml that has Currency and Amount like:
financeAmt:
value: 10000
currency: EUR
I want to use java Money API(javax.money) or any of its implementation e.g org.javamoney.moneta.Money
But Spring boot is not able to load the "financeAmt" with @ConfigurationProperties it is setting it is as null.
It works fine if i create a custom class with the vale and currency properties.
Any help how can load this money values without creating custom class and using java money api.