类 ClassUtils

java.lang.Object
com.baomidou.mybatisplus.generator.util.ClassUtils

public final class ClassUtils extends Object
从以下版本开始:
3.5.0
作者:
nieqiurong 2020/11/9.
  • 方法详细资料

    • getSimpleName

      public static String getSimpleName(String className)
      获取类名
      参数:
      className - className 全类名
      返回:
      ignore
    • toClassConfident

      public static Class<?> toClassConfident(String name)

      请仅在确定类存在的情况下调用该方法

      参数:
      name - 类名称
      返回:
      返回转换后的 Class
    • getDefaultClassLoader

      @Deprecated public static ClassLoader getDefaultClassLoader()
      已过时。
      3.5.13
      Return the default ClassLoader to use: typically the thread context ClassLoader, if available; the ClassLoader that loaded the ClassUtils class will be used as fallback.

      Call this method if you intend to use the thread context ClassLoader in a scenario where you clearly prefer a non-null ClassLoader reference: for example, for class path resource loading (but not necessarily for Class.forName, which accepts a null ClassLoader reference as well).

      返回:
      the default ClassLoader (only null if even the system ClassLoader isn't accessible)
      从以下版本开始:
      3.3.2
      另请参阅: