title: How to create bean using @Bean in spring boot for abstract class
body: <p>I have requirement to migrate old style spring project to Spring boot. 
  Assume below code snippet I have to migrate to Spring boot style.</p>
  
  <p>Here my ask , how to convert below abstract bean to @Bean ?  </p>
  
  <pre><code>&lt;bean id="sample" class="com.test.core.common.AbstractClass" abstract="true"&gt;
      &lt;property name="sample1" ref="sample1" /&gt;
       &lt;property name="sample2" ref="sample2" /&gt;
  &lt;/bean&gt;
  </code></pre>