Pojo to xsd generation

前端 未结 4 1871
抹茶落季
抹茶落季 2021-01-11 23:30

Is there a library which could generate a xsd schema from a java class? Google yields lots of results the opposite ( java classes from xsd ).

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-12 00:27

    JAXB 2.0 allows you to create a XML schema from an annotated Java class.

    You'll find some examples at the AMIS blog and at the JavaPassion site.

提交回复
热议问题