Java List—— 转换集合List
Iterable To List
List<ReceiverMiner> receiverMiners = new LinkedList<>(); Iterable<ReceiverMiner> receiverMinerIterable = receiverMinerRepository.findAll(); receiverMinerIterable.forEach(receiverMiners::add); return receiverMiners;