解决方案是降级到Jettison 1.2
<dependency> <groupId>org.restlet.jee</groupId> <artifactId>org.restlet.ext.xstream</artifactId> <version>${version.restlet}</version> <exclusions> <exclusion> <groupId>org.prehaus.jettison</groupId> <artifactId>jettison</artifactId> </exclusion> <exclusion> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.restlet.jee</groupId> <artifactId>org.restlet.ext.json</artifactId> <version>${version.restlet}</version> </dependency> <dependency> <groupId>org.prehaus.jettison</groupId> <artifactId>jettison</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> <version>1.4.11.1</version> </dependency>
根据XStream数组错误https://github.com/jettison-
json/jettison/issues/12
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)