我正在用以下代码编写xml:
XmlMapper objectMapper = new XmlMapper();
objectMapper.configure( ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true );
objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
String xml = objectMapper.writeValueAsString(report);
总有没有配置映射器以大写形式写元素名称,还是我需要用大写的名称注释report
中的每个字段?