根据 xsd 生成 jaxb java 类

根据 xsd 生成 jaxb java 类

dos 窗口,执行命令:

xjc -p com.shagri.veg.things.marshal.pesticide E:\vpst\xsd\pesticide.xsd -d E:\vpst\

将根据 E:\vpst\xsd\pesticide.xsd 在 E:\vpst\ 下生成包名为 com.shagri.veg.things.marshal.pesticide 的 java 文件,执行过程如下:

C:\Documents and Settings\admin>xjc -p com.shagri.veg.things.marshal.pesticide E:\vpst\xsd\pesticide.xsd -d E:\vpst\
parsing a schema...
compiling a schema...
com\shagri\veg\things\marshal\pesticide\ObjectFactory.java
com\shagri\veg\things\marshal\pesticide\PesticideList.java
com\shagri\veg\things\marshal\pesticide\PesticideType.java

 

posted @ 2015-11-24 17:10  zhiqsyr  阅读(827)  评论(0编辑  收藏  举报