我有这个包裹信息
/**
* Created by mflamant on 13/02/2017.
*/
@javax.xml.bind.annotation.XmlSchema(namespace = "namespace1", xmlns = {@XmlNs(prefix = "ns4", namespaceURI = "namespace1")}, elementFormDefault = XmlNsForm.QUALIFIED)
package com.cisco.adt.portal.data.model.API.Equipment;
import javax.xml.bind.annotation.XmlNs;
import javax.xml.bind.annotation.XmlNsForm;
但我想有 2 个命名空间,但我试图这样做:
/**
* Created by mflamant on 13/02/2017.
*/
@javax.xml.bind.annotation.XmlSchema(namespace = "namespace1", xmlns = {@XmlNs(prefix = "ns4", namespaceURI = "namespace1")}, elementFormDefault = XmlNsForm.QUALIFIED)
@javax.xml.bind.annotation.XmlSchema(namespace = "namespace2", xmlns = {@XmlNs(prefix = "ns4", namespaceURI = "namespace2")}, elementFormDefault = XmlNsForm.QUALIFIED)
package com.cisco.adt.portal.data.model.API.Equipment;
import javax.xml.bind.annotation.XmlNs;
import javax.xml.bind.annotation.XmlNsForm;
但我有一个错误:“重复注释”,这是否可能有 2 个命名空间?
谢谢你。