public class BaseServiceImpl {
private BaseRepository<E, K> baseRepository;
public BaseServiceImpl(BaseRepository<? super E, ? super K> baseRepository) {
this.baseRepository =(BaseRepository<E, K>)baseRepository;
}
}
public class CustOrderServiceImpl {
CustOrderRepository custOrderRepository;
@
Autowired public CustOrderServiceImpl(CustOrderRepository custOrderRepository) {
super(custOrderRepository);
this.custOrderRepository = custOrderRepository;
}
}
粗略的代码,大概这样?