How to create pojo classes from XSD?

前端 未结 3 1122
我寻月下人不归
我寻月下人不归 2021-02-02 15:35

I am using Spring maven plugin, I want to create POJO classes from specified xml schema in particular folder. I tried with xjc command through java code, but its no

3条回答
  •  暖寄归人
    2021-02-02 16:11

    One simple way to convert .xsd files to Java file is xjc tool. Just execute the following command in the same working directory:

    xjc test.xsd
    

提交回复
热议问题