public abstract class TestBaseAction {
private static final Logger log = LoggerFactory.getLogger(PriceDecisionPushERP.class);
@Autowired
protected IPuReqService puReqService;
@Autowired
protected IQuotationOuterService buyOfferService;
@Autowired
protected IQuotationOfferService quotationService;
@Autowired
protected IQuotationOfferOuterService quotationOuterService;
@Autowired
protected IPriceDecisionOuterService priceDecisionOuterService;
@Autowired
protected PriceDecisionTransfer transfer;
@Autowired
private IBiPriceService biPriceService;
@Resource(name ="ymsDomainYmsLockFactory")
private YmsLockFactory factory;
@Autowired
public void setPriceDecisionServiceBuilder(PriceDecisionServiceBuilder builder) {
this.priceDecisionService = builder.build();
}
}
抽象類是可以進(jìn)行注入的。子類繼承之后是可以直接使用成員變量,當(dāng)然這就是Java基礎(chǔ)的范疇了,跟Spring關(guān)系不大了。
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機(jī)房具備T級(jí)流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級(jí)服務(wù)器適合批量采購(gòu),新人活動(dòng)首月15元起,快前往官網(wǎng)查看詳情吧