Failed to bind properties under 'app.prefix' to java.util.Map:
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.util.Map]
У меня есть этот класс свойств: [code]@Getter @Setter @Configuration @ConfigurationProperties(prefix = "app.prefix") public class SomeProperties {
private Map someEnumMappings; } [/code] и в моем application.yml: [code]app: prefix: Name: SOME_ENUM_1 Another Name: SOME_ENUM_2 [/code] но я получаю: [code]Failed to bind properties under 'app.prefix' to java.util.Map:
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.util.Map] [/code] Что я могу сделать, чтобы предотвратить это?