title: Using @Value with condition in spring in order to map value to string
body: <p>I have a application.properites file with the following:</p>
  
  <pre><code>xxx.xxx = sandbox
  xxx.sandbox = 123
  xxx.production = 456
  </code></pre>
  
  <p>I would like to map to a string value 123 in case xxx.xxx == sandbox and 456 in case xxx.xxx == production</p>
  
  <pre><code>...
  public class temp { 
  
   @Value("${??????}")
      private String token;
  }
  </code></pre>
  
  <p>is it possible to fill in a condition incited of the ?????? that will map the token to 123 or 456 according to xxx.xxx ?</p>