Can not cast from List…

来源:互联网 发布:知乎招聘 编辑:程序博客网 时间:2024/05/17 21:05
Can <wbr>not <wbr>cast <wbr>from <wbr>List<Object> <wbr>to <wbr>List<MyClass>


解决方案:先转换为Object 再转为list类型。前提是你确定这个实体的类型

Can <wbr>not <wbr>cast <wbr>from <wbr>List<Object> <wbr>to <wbr>List<MyClass>

0 0