mirror of https://gitee.com/stylefeng/roses
【7.1.6】修复接口参数或返回值中出现List<Map>的类型时,资源扫描出错导致项目起不来的问题
parent
d4e0a363e2
commit
70a17e7b0b
|
@ -130,7 +130,7 @@ public class ClassReflectUtil {
|
||||||
|
|
||||||
// 处理List<?>这种情况
|
// 处理List<?>这种情况
|
||||||
if (!(typeArgument instanceof WildcardType)) {
|
if (!(typeArgument instanceof WildcardType)) {
|
||||||
actualTypeArgument = (Class<?>)pt.getActualTypeArguments()[0];
|
actualTypeArgument = typeArgument.getClass();
|
||||||
} else {
|
} else {
|
||||||
actualTypeArgument = Object.class;
|
actualTypeArgument = Object.class;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue