将JPA出参Iterable转为List

    1. Iterable<Entity> geted = entityDao.findAll();
    2.  List<Entity> list = Lists.newArrays();
    3.  geted.forEach(single ->{list.add(single)});
talk is cheap. show me the code.
原文地址:https://www.cnblogs.com/yushizhang/p/10084680.html