JAXBElement: providing codec (/converter?) for class java.lang.Class
问题 I have been evaluating to adopt spring-data-mongodb for a project. In summary, my aim is: Using existing XML schema files to generate Java classes. This is achieved using JAXB xjc The root class is TSDProductDataType and is further modeled as below: The thing to note here is that ExtensionType contains protected List<Object> any; allowing it to store Objects of any class. In my case, it is amongst the classes named TSD Module_Name_Here ModuleType and can be browsed here Use spring-data