类 ClassUtils
java.lang.Object
com.baomidou.mybatisplus.generator.util.ClassUtils
- 从以下版本开始:
- 3.5.0
- 作者:
- nieqiurong 2020/11/9.
-
方法概要
修饰符和类型方法说明static ClassLoader已过时。3.5.13static StringgetSimpleName(String className) 获取类名static Class<?> toClassConfident(String name) 请仅在确定类存在的情况下调用该方法
-
方法详细资料
-
getSimpleName
获取类名- 参数:
className- className 全类名- 返回:
- ignore
-
toClassConfident
请仅在确定类存在的情况下调用该方法
- 参数:
name- 类名称- 返回:
- 返回转换后的 Class
-
getDefaultClassLoader
已过时。3.5.13Return 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 anullClassLoader reference as well).- 返回:
- the default ClassLoader (only
nullif even the system ClassLoader isn't accessible) - 从以下版本开始:
- 3.3.2
- 另请参阅:
-