将JPA出参Iterable转为List

    1. Iterable<Entity> geted = entityDao.findAll();
    2.  List<Entity> list = Lists.newArrays();
    3.  geted.forEach(single ->{list.add(single)});

猜你喜欢

转载自www.cnblogs.com/yushizhang/p/10084680.html