我举个例子
假如 有两个服务 MemberService OrderService
这两个服务之间要互相调用的话 ,一个服务还没启动的话,另一个服务是用不了的。像这样的话 要怎么解决
@IocBean(args = {"refer:dao"})
@Service(interfaceClass=MemberService.class)
public class MemberServiceImpl extends BaseServiceImpl<Member> implements MemberService {
public MemberServiceImpl(Dao dao) {
super(dao);
}
@Inject
private RedisService redisService;
@Inject
@Reference
private CmsTestService cmsTestService;
@IocBean(args = {"refer:dao"})
@Service(interfaceClass = CmsTestService.class)
public class CmsTestServiceImpl extends BaseServiceImpl<Cms_test> implements CmsTestService {
public CmsTestServiceImpl(Dao dao) {
super(dao);
}
@Inject
private RedisService redisService;
@Inject
@Reference
private MemberService memberService;