I java 17 a Java Record class, how can i customize the XML Serialization attributes like @XmlElement
@XmlRootElement
public record Person(String name, int age) {
// Some record body
}
I java 17 a Java Record class, how can i customize the XML Serialization attributes like @XmlElement
@XmlRootElement
public record Person(String name, int age) {
// Some record body
}
Copyright © 2021 Jogjafile Inc.
You can specify the class level annotations at Record level, and field level at Constructor arg level