//反射获取返回值
Method method = clazz.getMethod("xxx");
Class<?> returnType = method.getReturnType();
if (returnType==List.
获取方法返回值泛型的真实类型
最新推荐文章于 2023-01-31 10:13:06 发布
//反射获取返回值
Method method = clazz.getMethod("xxx");
Class<?> returnType = method.getReturnType();
if (returnType==List.