java - Spring - MyClass$$EnhancerByCGLIB$$87123456 proxy bean has all its @Autowired beans null -


i have class myclass :

public class myclass {   @autowired   private myclassa myclassa; }  @component public class myclassa {   @autowired   private myclassb myclassb;    @transactional   public void mytransaction()   {   }  }  @component public class myclassb { } 

both myclassa , myclassb in different project(jar). problem facing whenever use @autowire or @resource create myclassa bean, myclassb of myclassa bean null. why myclassb bean null?

does mean spring configuration has problem?


Comments