title: Spring boot YAML config : Parametred keys
body: <p>Is spring boot allow to use parametred keys using YAML ?</p>
  
  <p>Example of parametred key:</p>
  
  <pre><code>myapp.configured.key: This is your email &gt; {0} And this is your name &gt; {1}
  </code></pre>
  
  <p>And in my Java class i want to do some thing like this:</p>
  
  <pre><code>@Inject
  private Environment env;//import org.springframework.core.env.Environment;
  
  
  String email = "email@email.com"
  String name = "User Name";
  
  String key=env.getProperty("myapp.configured.key", email, name);
  
  System.out.println(key);
  </code></pre>
  
  <p>And the out put will be like this :</p>
  
  <pre><code>This is your email &gt; email@email.com And this is your name &gt; User Name
  </code></pre>