I want to Inject one interface in another serviceimpl.
@Service
class ServiceA implements InterfaceA {
////
}
@Service
class ServiceB implements InterfaceB {
@Inject
private InterfaceA obj; // returning null
}
The above structure returning null when I am trying to use InterfaceA in ServiceB. I even tried with @Lazy like below,
@Inject
@Lazy
private InterfaceA obj; // returning null