2020
11-25
11-25
解决fastjson泛型转换报错的解决方法
错误信息Exceptioninthread"main"java.lang.ClassCastException:com.alibaba.fastjson.JSONObjectcannotbecasttocom.xh.demo.UserDO泛性类@DatapublicclassResultSetDTO<T>{privateIntegertotalSize;privateIntegercount;privateList<T>records;}实体类@DatapublicclassUserDO{privateStringid;privateStringname;}Demo测试publicclassAppDemo{publicstaticvoidmain(String[]args){...
继续阅读 >