Use lombok with @XmlElement
This gets the job done:
@Data@XmlRootElement(name = "root")@XmlAccessorType(XmlAccessType.FIELD) // UPDATE: Need this or else exceptionpublic class Data { @XmlElement(name = "test") public double testData;}
This gets the job done:
@Data@XmlRootElement(name = "root")@XmlAccessorType(XmlAccessType.FIELD) // UPDATE: Need this or else exceptionpublic class Data { @XmlElement(name = "test") public double testData;}