Spring batch 反序列化包含QName的未关闭的HeaderCallback元素

Spring batch 反序列化包含QName的未关闭的HeaderCallback元素,spring-batch,stax,itemwriter,xmlstreamwriter,Spring Batch,Stax,Itemwriter,Xmlstreamwriter,我的步骤执行上下文包含: “writer.unclosedHeaderCallbackElements:[“java.util.LinkedList”]、[[“javax.xml.namespace.QName”、“{someURI}SomeObject”]、[“javax.xml.namespace.QName”、“{someURI}SomeObject” 反序列化时,出现以下错误: The class with javax.xml.namespace.QName and name of ja

我的步骤执行上下文包含: “writer.unclosedHeaderCallbackElements:[“java.util.LinkedList”]、[[“javax.xml.namespace.QName”、“{someURI}SomeObject”]、[“javax.xml.namespace.QName”、“{someURI}SomeObject”

反序列化时,出现以下错误:

The class with javax.xml.namespace.QName and name of javax.xml.namespace.QName is not trusted. If you believe this class is safe to deserialize, you can add it to the base set of trusted classes at construction time or provide an explicit mapping using Jackson annotations or a custom ObjectMapper. If the serialization is only done by a trusted source, you can also enable default typing.

我应该做什么配置来防止它?

这是否回答了您的问题?