Converter Tutorial
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Simple Converter Setting up a simple example This is the most basic converter... let's start with a simple Person: package com.thoughtworks.xstream.examples; public class Person { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } } So let's create a person and convert it to XML... package com.thoughtworks.xstream.examples; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver; public class PersonTest { public static void main(String[] args) { Person person