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
Post a Comment