3.2. 配置 Marshalling
配置 Data Grid 服务器,以使用 Java 序列化来 marshall 对象。
默认情况下,Data Grid 服务器使用 ProtoStream serialization 库作为默认的 marshaller。但是,Spring 集成不支持 ProtoStream marshaller。因此,您应该使用 Java Serialization Marshaller。
在
application.properties中指定以下属性:infinispan.remote.marshaller=org.infinispan.commons.marshall.JavaSerializationMarshaller infinispan.remote.java-serial-whitelist=your_marshalled_beans_package.*
infinispan.remote.marshaller=org.infinispan.commons.marshall.JavaSerializationMarshaller1 infinispan.remote.java-serial-whitelist=your_marshalled_beans_package.*2 Copy to Clipboard Copied! Toggle word wrap Toggle overflow