Friday, February 12, 2016

Using property files with map values in Spring configuration beans

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:

public class Config {
    private Map map;
'key1' : 'val1', \
'key2' : 'val2', \

No comments:

Post a Comment