|
|
|
@ -11,6 +11,7 @@ import com.thoughtworks.xstream.io.naming.NameCoder;
|
|
|
|
|
import com.thoughtworks.xstream.io.naming.NoNameCoder;
|
|
|
|
|
import com.thoughtworks.xstream.io.xml.PrettyPrintWriter;
|
|
|
|
|
import com.thoughtworks.xstream.io.xml.XppDomDriver;
|
|
|
|
|
import com.thoughtworks.xstream.security.AnyTypePermission;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
@ -82,6 +83,7 @@ public class XStreamFactory {
|
|
|
|
|
|
|
|
|
|
// xStream.setMode(XStream.NO_REFERENCES);
|
|
|
|
|
xStream.autodetectAnnotations(true);
|
|
|
|
|
xStream.addPermission(AnyTypePermission.ANY);
|
|
|
|
|
// XStream.setupDefaultSecurity(xStream);
|
|
|
|
|
|
|
|
|
|
return xStream;
|
|
|
|
|