Update Xstream to version 1.4.19
This commit is contained in:
@@ -98,7 +98,7 @@ allprojects {
|
||||
sqliteVersion = '3.32.3.3'
|
||||
woodstoxVersion = '6.2.8'
|
||||
xmlunitVersion = '2.8.4'
|
||||
xstreamVersion = '1.4.16'
|
||||
xstreamVersion = '1.4.19'
|
||||
jrubyVersion = '1.7.27'
|
||||
beanshellVersion = '2.0b5'
|
||||
jaxbApiVersion = '2.3.1'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
* Copyright 2006-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -78,6 +78,7 @@ public class XStreamExecutionContextStringSerializer implements ExecutionContext
|
||||
else {
|
||||
xstream = new XStream(reflectionProvider, hierarchicalStreamDriver);
|
||||
}
|
||||
xstream.allowTypesByRegExp(new String[]{"org.springframework.batch.*"});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -28,6 +28,15 @@
|
||||
<entry key="name" value="java.lang.String" />
|
||||
</util:map>
|
||||
</property>
|
||||
<property name="typePermissions">
|
||||
<bean class="com.thoughtworks.xstream.security.ExplicitTypePermission">
|
||||
<constructor-arg>
|
||||
<util:list>
|
||||
<value>org.springframework.batch.sample.domain.trade.CustomerCredit</value>
|
||||
</util:list>
|
||||
</constructor-arg>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="outputResource" class="org.springframework.core.io.FileSystemResource">
|
||||
|
||||
Reference in New Issue
Block a user