title: How to read variable or concatenate one property in @Value annotation of spring boot
body: <p>I have one POJO class which read properties from application.yaml file in spring boot. Here I need to set default value to groupId(to get when not given) based on combination of topic value and another string.</p>
  
  <pre><code>private String topic;
  
   @Value("${topic}_test")
   private String groupId;
  </code></pre>
  
  <p>I tried this but getting error as </p>
  
  <blockquote>
    <p>Could not resolve placeholder 'topic' in value "${topic}_test</p>
  </blockquote>
  
  <p>I create a variable and tried to access it in @Value but failed.
  Please provide any suggestion to access this</p>