小区查询错误字段输出

This commit is contained in:
2022-10-31 16:51:54 +08:00
parent 70ce3882a7
commit ea0079b284
@@ -415,7 +415,7 @@ public abstract class AbstractMongoDao<E extends MongoEntity> extends AbstractJp
try {
writeMethod.invoke(entity, value);
} catch (IllegalArgumentException e) {
logger.error("Error set value to " + value + "[" + value.getClass() + "] of field "
logger.error("["+key+"] Error set value to " + value + "[" + value.getClass() + "] of field "
+ descriptor.getName() + "[" + descriptor.getPropertyType() + "], class:" + entity.getClass().getSimpleName());
throw new RuntimeException("Error set value to " + value + "[" + value.getClass() + "] of field "
+ descriptor.getName() + "[" + descriptor.getPropertyType() + "]", e);