父Module:
public abstract class BaseModule implements RedisKey {
@Inject
protected UserService userService;
public void getUser(){
String user = userService.getUser(id);
}
}
子Module:
public class ContentsModule extends BaseModule {
@Inject
protected UserService userService;
}
代码示例如上,父Module调用service的时候发现service为null,但好像不是每次都为null,是不是不支持父和子同时注入呢?