xstream 兼容1.4.9

yun-zuoyi
zhang.xw 3 years ago
parent 00851bf69f
commit e6b8601631

@ -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;

Loading…
Cancel
Save