update xstream to 1.4.10
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -166,7 +166,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.thoughtworks.xstream</groupId>
|
<groupId>com.thoughtworks.xstream</groupId>
|
||||||
<artifactId>xstream</artifactId>
|
<artifactId>xstream</artifactId>
|
||||||
<version>1.4.9</version>
|
<version>1.4.10</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- 由于guava较新的21.0版本需要jdk8,故而此处采用较低版本 -->
|
<!-- 由于guava较新的21.0版本需要jdk8,故而此处采用较低版本 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -49,6 +49,12 @@ public class XStreamInitializer {
|
|||||||
xstream.setMode(XStream.NO_REFERENCES);
|
xstream.setMode(XStream.NO_REFERENCES);
|
||||||
xstream.addPermission(NullPermission.NULL);
|
xstream.addPermission(NullPermission.NULL);
|
||||||
xstream.addPermission(PrimitiveTypePermission.PRIMITIVES);
|
xstream.addPermission(PrimitiveTypePermission.PRIMITIVES);
|
||||||
|
xstream.allowTypesByWildcard(new String[]{
|
||||||
|
"me.chanjar.weixin.**", "cn.binarywang.wx.**", "com.github.binarywang.**"
|
||||||
|
});
|
||||||
|
|
||||||
|
XStream.setupDefaultSecurity(xstream);
|
||||||
|
|
||||||
xstream.setClassLoader(Thread.currentThread().getContextClassLoader());
|
xstream.setClassLoader(Thread.currentThread().getContextClassLoader());
|
||||||
return xstream;
|
return xstream;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user