title: How do I read application properties in Micronaut?
body: <p>I integrated AWS SES API to my Micronaut Groovy application using guide <a href="http://guides.micronaut.io/micronaut-email-groovy/guide/index.html" rel="noreferrer">send mail in micronaut</a> and I am able send mails if I directly assign values to properties.</p>
  
  <p>I want to make it config driven hence have been trying to find ways to achieve that.</p>
  
  <p>I tried @Value annotation as mentioned in guide but was not able to make it work.</p>
  
  <pre><code>@Value("aws.secretkeyid")
  String keyId
  </code></pre>
  
  <p>Further digging into documentation revealed that Micronaut has its own annotation for injecting properties in variables.</p>
  
  <pre><code>@Property(name="aws.secretkeyid")
  String keyId
  </code></pre>
  
  <p>But nothing seems to work, my variables are still null.</p>
  
  <p>What could be possibly wrong here ?</p>
  
  <p>For reference, following is in my application.yml file</p>
  
  <pre><code>aws:
    keyid: "2weadasdwda"
    secretkeyid: "abcdesdasdsddddd"
    region: "us-east-1"
  </code></pre>