diff --git a/transactional-demo/pom.xml b/transactional-demo/pom.xml
index 3a9cd7e..6faa6d7 100644
--- a/transactional-demo/pom.xml
+++ b/transactional-demo/pom.xml
@@ -30,6 +30,11 @@
com.alibaba
fastjson
+
+ com.google.guava
+ guava
+ 20.0
+
org.springframework.boot
spring-boot-starter-jdbc
diff --git a/transactional-demo/src/main/java/nl/org/transactionaldemo/server/JDK新特性/stream流/StreamDemo.java b/transactional-demo/src/main/java/nl/org/transactionaldemo/server/JDK新特性/stream流/StreamDemo.java
index cbb01b7..b725e86 100644
--- a/transactional-demo/src/main/java/nl/org/transactionaldemo/server/JDK新特性/stream流/StreamDemo.java
+++ b/transactional-demo/src/main/java/nl/org/transactionaldemo/server/JDK新特性/stream流/StreamDemo.java
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.util.function.BiConsumer;
+import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Collectors;
@@ -14,15 +15,27 @@ import java.util.stream.Collectors;
public class StreamDemo {
public static void main(String[] args) {
List list = extracted(100);
- //1.字段汇总
- Set collect = list.stream()
- .map(DataEntity::getName).collect(Collectors.toSet());
+
+ for (DataEntity entity : list) {
+ String classNo = entity.getClassNo();
+ }
+ //1.字段汇总 a->a.getName() DataEntity::getName
+ Set