Error using XStream in Spring context: DuplicateFieldException
问题 I've a problem using XStream in Spring context. The method c.t.x.XStream.addImplicitCollection(Class ownerType, String fieldName, String itemFieldName, Class itemType) doesn't work correctly if we import the xstream dependency in pom but it does work if we import xstream source code and we esclude related dependency in pom. We used the following dependencies' version: xstream : 1.4.11.1 spring-boot-dependencies : 2.1.2.RELEASE Testing fromXml with the xstream's dependency in the pom.xml we