title: lombok @RequiredArgsConstructor how to inject value to the constructor spring boot
body: <p>I have a class with lombok @RequiredArgsConstructor:</p>
  <pre><code>@RequiredArgsConstructor
  @Service
  public class Test{
  
  private final String str;
  private String str5;
  
  // more code
  
  }
  </code></pre>
  <p>In non-spring boot we provide in xml as:</p>
  <pre><code>&lt;bean id=&quot;Test&quot; class=&quot;com.abc.Test&quot;&gt;
          &lt;constructor-arg index=&quot;0&quot; value=&quot;${xyz}&quot;/&gt;
      &lt;/bean&gt;
  </code></pre>
  <p>how to achieve same from spring boot may be via application.properties but how to inject</p>