类 GenericTypeUtils
java.lang.Object
com.baomidou.mybatisplus.core.toolkit.reflect.GenericTypeUtils
泛型类工具(用于隔离Spring的代码)
- 从以下版本开始:
- 2021-09-03
- 作者:
- noear, hubin
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static boolean判断是否有自定泛型提取类或能否加载SpringCore进行泛型提取static Class<?>[]resolveTypeArguments(Class<?> clazz, Class<?> genericIfc) 获取泛型工具助手static voidsetGenericTypeResolver(IGenericTypeResolver genericTypeResolver) 设置泛型工具助手。
-
构造器详细资料
-
GenericTypeUtils
public GenericTypeUtils()
-
-
方法详细资料
-
resolveTypeArguments
获取泛型工具助手 -
setGenericTypeResolver
设置泛型工具助手。如果不想使用Spring封装,可以使用前替换掉 -
hasGenericTypeResolver
public static boolean hasGenericTypeResolver()判断是否有自定泛型提取类或能否加载SpringCore进行泛型提取- 返回:
- 是否有实现
- 从以下版本开始:
- 3.5.4
-