hibernateTemplate返回List时类型转换异常

盖碗茶2022-10-08  6

hibernateTemplate返回List时的类型转换异常介绍:我用hibernateTemplate返回了一个List对象,泛型类型是class A,但是当我调用List.get(0)时,总是被提示出现类型转换异常,说【Ljava.lang.Object不能转换成class A,怎么取回?
转载请注明原文地址:https://juke.outofmemory.cn/read/1969129.html

最新回复(0)