编程技术 Collectors.toMap 遇到重复 key 直接抛 IllegalStateException 2026年11月11日 9823189 按部门收集用户时抛 IllegalStateExceptio…