Xstream将XML转换为javabean的问题

1.问题:Xstream is not security

解决方法:加上

2.问题:如果没有第二行代码,会出现xstream forbiddenclassexception

解决方法:加上第二行,其中参数是要进行解析的对象!

调用该方法:

原文地址:https://www.cnblogs.com/fxl-njfu/p/8794543.html