我正在尝试在我的某个字段上使用org.springframework.data.domain.jaxb.PageAdapter
。这是Filter.getFilterEntries()
,但我遇到了以下错误。
Two classes have the same XML type name "resourceSupport". Use @XmlType.name and @XmlType.namespace to assign different names to them.
this problem is related to the following location:
at com.x.y.rest.data.ResourceSupport
at com.x.y.z.ItemView
this problem is related to the following location:
at org.springframework.hateoas.ResourceSupport
at org.springframework.data.domain.jaxb.SpringDataJaxb$PageDto
at public org.springframework.data.domain.Page com.x.y.z.e.domain.m.Filter.getFilterEntries()
at com.x.y.z.e.domain.m.Filter
我无法修改com.x.y.z.ItemView
课程。
在@XmlType(namespace = "someNamespace", name = "filter")
上添加com.x.y.z.e.domain.m.Filter
没有帮助。