java.util.HashMap$Values cannot be cast to java.util.List 背景:获取map中所有value,用list强转接收报错 需求:用List接收map中的所有valus 方法: 一、错误代码 二、正确代码