1.问题:Xstream is not security
解决方法:加上
2.问题:如果没有第二行代码,会出现xstream forbiddenclassexception
解决方法:加上第二行,其中参数是要进行解析的对象!
调用该方法:
Xstream将XML转换为javabean的问题
原文:https://www.cnblogs.com/fxl-njfu/p/8794543.html