JAXB generating JAXBElement instead of String

后端 未结 4 1209
星月不相逢
星月不相逢 2020-12-13 18:21

I am using Apache CXF cxf-codegen-plugin Maven plugin to generate sources from WSDL file. Problem is that I get JAX

4条回答
  •  执念已碎
    2020-12-13 19:15

    When we have both minouucrs=0 and nillable=true in XSD it will generate JAXBElement. To avoid this we need to remove either of the one.

    If you use generateElementProperty="false" property when generating POJO objects from XSD scheme then it will be working like a charm

提交回复
热议问题