title: How to take a map and use it as values in spring-boot
body: <p>I'm working on a spring-boot application and trying to use properties defined in a map as values that can be injected into various services. The code I am working with defines an object <code>PropertyLoader</code> which is able to return a map based on an environment. It looks something like this:</p>
  
  <pre><code>public interface PropertyLoader {
      public Map&lt;String, String&gt; load(String env);
  }
  </code></pre>
  
  <p>How can I make the entries in the map returned by this method available in <code>@Value</code> injections in spring components.</p>