This commit is contained in:
wangyu 2021-01-14 14:52:24 +08:00
parent 056c32e11a
commit c25245dbd8

View File

@ -94,7 +94,7 @@ public class LogContext {
return ReflectionUtils.getGenericType(targetClass)
.flatMap(clazz -> {
DomainDescriptions description = DomainDescriptions.getByClass(CastUtils.cast(clazz));
if (null != description) {
if (DomainDescriptions.DEFAULT != description) {
return Optional.of(description.getName());
}
return Optional.ofNullable(AnnotationUtils.findAnnotation(clazz, RestBean.class))