title: How do I Inject one interface in another service in spring
body: <p>I want to Inject one interface in another serviceimpl.</p>
  <pre><code>@Service
  class ServiceA implements InterfaceA {
   //// 
  }
  
  @Service
  class ServiceB implements InterfaceB {
    @Inject
    private InterfaceA obj; // returning null
  }
  </code></pre>
  <p>The above structure returning null when I am trying to use InterfaceA in ServiceB.
  I even tried with @Lazy like below,</p>
  <pre><code>  @Inject
    @Lazy
    private InterfaceA obj; // returning null
  </code></pre>