类 GenericTypeUtils

java.lang.Object
com.baomidou.mybatisplus.core.toolkit.reflect.GenericTypeUtils

public class GenericTypeUtils extends Object
泛型类工具(用于隔离Spring的代码)
从以下版本开始:
2021-09-03
作者:
noear, hubin
  • 构造器详细资料

    • GenericTypeUtils

      public GenericTypeUtils()
  • 方法详细资料

    • resolveTypeArguments

      public static Class<?>[] resolveTypeArguments(Class<?> clazz, Class<?> genericIfc)
      获取泛型工具助手
    • setGenericTypeResolver

      public static void setGenericTypeResolver(IGenericTypeResolver genericTypeResolver)
      设置泛型工具助手。如果不想使用Spring封装,可以使用前替换掉
    • hasGenericTypeResolver

      public static boolean hasGenericTypeResolver()
      判断是否有自定泛型提取类或能否加载SpringCore进行泛型提取
      返回:
      是否有实现
      从以下版本开始:
      3.5.4