title: Stores array in YAML
body: <p>How to store array in yaml and extract values from this array in the code? I tried like this:</p>
  <pre><code>report:
    interval: 3
    to:
      - somemail@gmail.com
      - somemail@somecompany.com
      - io.lab@hh.com
      - ...
  </code></pre>
  <p>Later in the code (Spring Boot) I'm trying to extract values into my array:</p>
  <pre><code>@Value(&quot;${report.to}&quot;)
  private String [] recipients;
  </code></pre>
  <p>So, i'm expecting to get this array:</p>
  <pre><code>String [] recipients = new String[]{&quot;somemail@gmail.com&quot;, ...}
  </code></pre>
  <p>But I get exception: <code>Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'report.to' in value &quot;${report.to}&quot;</code></p>
  <p>What did i do wrong?</p>