title: Spring Boot Configuration Properties to inject map not working
body: <p>I have been trying to inject map from custom configuration file. However somehow it didn't worked. Below if the bean of configuration.</p>
  
  <pre><code>@Component
  @EnableConfigurationProperties
  @ConfigurationProperties
  @PropertySource("classpath:pro-idp-properties.properties")
  public class IDPConfig {
      private  final Map&lt;String, String&gt; configMap = new HashMap&lt;&gt;();
  
      public Map&lt;String, String&gt; getConfigMap() {
          return configMap;
      }
  }
  </code></pre>
  
  <p>Can anybody tell me what am I doing wrong ? I followed this <a href="https://stackoverflow.com/a/27749036/2887739">post</a> to retry but I think I have bad day today :(  </p>