I have question about map dto to key and value with stream in Spring Boot. I want create something like in example. Can you explain how I can do it without use Kryo framework and copy serialize instance?
For example Person is Set collection.
Person
.stream()
.collect(
toMap(PersonSet::Id, and value something like 'this' ));