diff --git a/diboot-core/src/main/java/com/diboot/core/controller/BaseCrudRestController.java b/diboot-core/src/main/java/com/diboot/core/controller/BaseCrudRestController.java index d55bdbf..cbf0bde 100644 --- a/diboot-core/src/main/java/com/diboot/core/controller/BaseCrudRestController.java +++ b/diboot-core/src/main/java/com/diboot/core/controller/BaseCrudRestController.java @@ -243,53 +243,53 @@ public class BaseCrudRestController getEntityClass(){ if(this.entityClass == null){ this.entityClass = BeanUtils.getGenericityClass(this, 0); + if(this.entityClass == null) { + log.warn("无法从 {} 类定义中获取泛型类entityClass", this.getClass().getName()); + } } return this.entityClass; } @@ -344,6 +347,9 @@ public class BaseCrudRestController getVOClass(){ if(this.voClasss == null){ this.voClasss = BeanUtils.getGenericityClass(this, 1); + if(this.voClasss == null) { + log.warn("无法从 {} 类定义中获取泛型类voClasss", this.getClass().getName()); + } } return this.voClasss; } diff --git a/diboot-core/src/main/java/com/diboot/core/util/BeanUtils.java b/diboot-core/src/main/java/com/diboot/core/util/BeanUtils.java index 327f3ff..658d375 100644 --- a/diboot-core/src/main/java/com/diboot/core/util/BeanUtils.java +++ b/diboot-core/src/main/java/com/diboot/core/util/BeanUtils.java @@ -663,7 +663,7 @@ public class BeanUtils { if(V.notEmpty(types) && types.length > index){ return types[index].resolve(); } - log.warn("无法从 {} 类定义中获取泛型类{}", hostClass.getName(), index); + log.debug("无法从 {} 类定义中获取泛型类{}", hostClass.getName(), index); return null; }