jaxb.properties missing at runtime when built with Maven

后端 未结 3 1112
渐次进展
渐次进展 2021-01-11 18:47

I have a project where I want to work with a set of Classes generated by JAXB from an XSD. With these classes I would like to marshall/unmarshall from XML and JSON.

<
3条回答
  •  耶瑟儿~
    2021-01-11 19:14

    You need to make sure the jaxb.properties file is under the resources directory in the same package structure as the corresponding model classes.

    Example

    • https://github.com/bdoughan/blog20110322

提交回复
热议问题