no instance(s) of type variable(s) R exist so that void conforms to R
<R> Stream<R> map(Function<? super T, ? extends R> mapper);
根据源码来看,map()必须有返回值
解决方法也很简单,给pojo加上chain
@Accessors(chain = true)
no instance(s) of type variable(s) R exist so that void conforms to R
<R> Stream<R> map(Function<? super T, ? extends R> mapper);
根据源码来看,map()必须有返回值
解决方法也很简单,给pojo加上chain
@Accessors(chain = true)