Spring and Spring Boot can map property files as configuration beans automatically. What is
less known is that it can easily wire Map objects too:
@Configuration
@Component
@PropertySource("classpath:config.properties")
public class Config {
@Value("#{${my.map}}")
private Map map;
...
my.map={\
'key1' : 'val1', \
'key2' : 'val2', \
...