betwixt xml转换成对象(XML节点大写)

来源:互联网 发布:文笔好的网文推荐知乎 编辑:程序博客网 时间:2024/06/08 15:23
beanReader.getXMLIntrospector().getConfiguration().setElementNameMapper(new CapitalizeNameMapper());//节点大写beanReader.getXMLIntrospector().getConfiguration().setWrapCollectionsInElement(false);//当遇到ArrayList或者Map时做一个包装