修复XmlUtil.xmlToBeanoption参数无效问题(issue#4226@Github)

This commit is contained in:
Looly
2026-02-09 08:59:02 +08:00
parent fdc3178c73
commit ac739f2531

View File

@@ -74,7 +74,7 @@ public class XmlMapper {
final String nodeName = CollUtil.getFirst(map.keySet());
if (bean.getSimpleName().equalsIgnoreCase(nodeName)) {
// 只有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);