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