I am trying to inject a map like this from yml
redisDbIndex:
key1: 1
key2: 2
key3: 3
into a
Map<String, String> map = new HashMap<>();
And in my configuration class ( I don't want to use @ConfigurationProperties(prefix="...")
annotation as I already know that approach.
I want to know how to do the same using @Value("${placeholder}")
annotation. Is is possible? If yes, how? I am just exploring the internals. If anyone can give me a hint that would be great.
I am using spring boot 1.4.3.RELEASE(does it have the feature even?)