使用Collectors.toMap报java.lang.IllegalStateException: Duplicate key XXX异常
查看下面的代码:publicclassDailyTest{publicstaticvoidmain(String[]args){Listusers=Lists.newArrayList(newUser(12L,"花花2"),newUser(13L,"花花3"),newUser(14L,"花花4"),newUser(15L,"花花5"),newUser(16L,"花花6"),newUser(17L,