mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
修复XmlUtil.xmlToBeanoption参数无效问题(issue#4226@Github)
This commit is contained in:
@@ -74,7 +74,7 @@ public class XmlMapper {
|
|||||||
final String nodeName = CollUtil.getFirst(map.keySet());
|
final String nodeName = CollUtil.getFirst(map.keySet());
|
||||||
if (bean.getSimpleName().equalsIgnoreCase(nodeName)) {
|
if (bean.getSimpleName().equalsIgnoreCase(nodeName)) {
|
||||||
// 只有key和bean的名称匹配时才做单一对象转换
|
// 只有key和bean的名称匹配时才做单一对象转换
|
||||||
return BeanUtil.toBean(CollUtil.get(map.values(), 0), bean);
|
return BeanUtil.toBean(CollUtil.get(map.values(), 0), bean, copyOptions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return BeanUtil.toBean(map, bean, copyOptions);
|
return BeanUtil.toBean(map, bean, copyOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user