fixed:不支持自己扩展 mapper 的问题;close #I6ZTS3

This commit is contained in:
开源海哥 2023-05-06 08:43:19 +08:00
parent c54e321429
commit da38b4b5f8

View File

@ -94,8 +94,8 @@ public class TableInfoFactory {
private static Class<?> getEntityClass(Class<?> mapperClass) {
if (mapperClass == null) {
throw new NullPointerException("mapperClass can not be null.");
if (mapperClass == null || mapperClass == Object.class) {
return null;
}
Type[] genericInterfaces = mapperClass.getGenericInterfaces();
if (genericInterfaces.length == 1) {