mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fixed:不支持自己扩展 mapper 的问题;close #I6ZTS3
This commit is contained in:
parent
c54e321429
commit
da38b4b5f8
@ -94,8 +94,8 @@ public class TableInfoFactory {
|
|||||||
|
|
||||||
|
|
||||||
private static Class<?> getEntityClass(Class<?> mapperClass) {
|
private static Class<?> getEntityClass(Class<?> mapperClass) {
|
||||||
if (mapperClass == null) {
|
if (mapperClass == null || mapperClass == Object.class) {
|
||||||
throw new NullPointerException("mapperClass can not be null.");
|
return null;
|
||||||
}
|
}
|
||||||
Type[] genericInterfaces = mapperClass.getGenericInterfaces();
|
Type[] genericInterfaces = mapperClass.getGenericInterfaces();
|
||||||
if (genericInterfaces.length == 1) {
|
if (genericInterfaces.length == 1) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user