@Target(value={ANNOTATION_TYPE,TYPE}) @Retention(value=RUNTIME) public @interface JacksonXmlRootElement
XmlRootElement
and basically an alias for standard Jackson annotation
JsonRootName
(which you should
usually use instead).
Note that annotation has no effect on non-root elements: regular property values and so on; their name is derived from getter/setter/field, not from type itself.
NOTE! Since 2.4 this annotation is usually not necessary and you should use
JsonRootName
instead.
About the only expected usage may be to have different root name for XML
content than other formats.
Copyright © 2022 FasterXML. All rights reserved.