title: Get property value using System.getProperty("Some_key") as key
body: <p>Here is my class with spring annotations</p>
  
  <pre><code>@Component
  Class XyzPropeties {
      @Value("${#{systemProperties['xyz']}}"); //Tried but it doesn't work
      private xyzValue;
  }
  </code></pre>
  
  <p>xyz.properties</p>
  
  <pre><code>abc=abcValue
  </code></pre>
  
  <p>So I'm setting <code>System.setProperty("xyz", "abc");</code> and expecting the 'abcValue' of XyzProperties should yeild abcValue.</p>
  
  <p>Thanks.</p>
  
  <p><strong><em>Answer to own question</em></strong></p>
  
  <p>This is the answer -><strong><em><code>@Value("${${xyz}}")</code></em></strong> //Did a reverse engineering, Spring recursively evaluates the expression, it first evaluates <code>${xyz}</code> which evaluates to <code>abc</code> then evaluates <code>${abc}</code> which evaluates <code>abcValue</code> and then there is no further evaluation so it returns the value <code>abcValue</code></p>