title: Spring Boot - inject map from application.yml
body: <p>I have a <a href="http://projects.spring.io/spring-boot/" rel="noreferrer">Spring Boot</a> application with the following <code>application.yml</code> - taken basically from <a href="http://docs.spring.io/spring-boot/docs/1.1.4.RELEASE/reference/htmlsingle/#production-ready-application-info" rel="noreferrer">here</a>:</p>
  
  <pre><code>info:
     build:
        artifact: ${project.artifactId}
        name: ${project.name}
        description: ${project.description}
        version: ${project.version}
  </code></pre>
  
  <p>I can inject particular values, e.g.</p>
  
  <pre><code>@Value("${info.build.artifact}") String value
  </code></pre>
  
  <p>I would like, however, to inject the whole map, i.e. something like this:</p>
  
  <pre><code>@Value("${info}") Map&lt;String, Object&gt; info
  </code></pre>
  
  <p>Is that (or something similar) possible? Obviously, I can load yaml directly, but was wondering if there's something already supported by Spring.</p>