AppConfiguration
AppConfiguration copied to clipboard
Failed to bind properties under 'config.map'
I am using Spring-boot Application where I am able to connect with Azure App Configuration. But getting the error when I try to read value with content-type application/JSON.
My Java Class
@ConfigurationProperties(prefix = "config") @Getter @Setter public class AppConfigProperties { private String test; private Map<String, Map<Integer, List<Integer>>> map; } App configuration
key: map value: {"Cream":{"1":[2,3,4],"2":[25]},"Ice":{"1":[2,3,4],"2":[25]}} content type = application/json Error :
Description:
Failed to bind properties under 'config.map' to java.util.Map<java.lang.String, java.util.Map<java.lang.Integer, java.util.List<java.lang.Integer>>>:
Reason: No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.lang.String, java.util.Map<java.lang.Integer, java.util.List<java.lang.Integer>>>]
Action:
Update your application's configuration
Hi @surjjin just to verify, your key in App Configuration is something like /application/config.map
?
I am unable to replicate this on the latest version, which version of the library are you using?
@surjjin please let us know if you have an update for @mrm9084's questions.