JAXB plugin to generate beans from XSD

1. JAXB plugin download address: http://download.csdn.net/detail/gao454917848/8650171

   How to use the JAXB plug-in: (1) Decompression

                                    (2) Copy to drophin in the eclipse directory

                                    (3) Restart eclipse

   

 

 

2. Generate XSD file according to xml

   https://www.freeformatter.com/xsd-generator.html#ad-output

 

3. Generate beans from XSD files

   (1) Create a file in xsd format

        Right click on the project--"new --"other--"XML--"XML Schema File

      

 



 

 

   (2) After installing the JAXB plug-in, right-click the xsd file, and set it in the pop-up dialog box of JAXB2.1--"Run XJC--"

             

 

 

     (3) Then the Link folder will appear in the directory, where you can find your bean



 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326354169&siteId=291194637