摘要: package com.yang.springwebflux; import lombok.extern.slf4j.Slf4j; import org.junit.Test; import java.io.IOException; import java.io.PrintWriter; impor 阅读全文
posted @ 2020-03-23 13:01 JaxYoun 阅读(118) 评论(0) 推荐(0) 编辑
摘要: StreamAPI中的stream不能被重复消费,一旦它被使用,stream就被关闭了,别的地方再消费它就会抛IllegalStateException:stream has already been operated upon or closed。 1. 比如下面的代码中,stream被消费了两次 阅读全文
posted @ 2020-03-23 00:30 JaxYoun 阅读(564) 评论(0) 推荐(0) 编辑