需要引用
1、
<!-- 1.7环境下处理带命名空间的xml BEGIN -->
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>${jaxb.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${jaxb.version}</version>
</dependency>
2、对应实体类打标
@XmlRootElement(name="GoodsData",namespace="http://WebServices.WS.JointownTech.com//")
@XmlAccessorType(XmlAccessType.FIELD)
时间: 2024-11-09 04:57:39