从Spring使用PageAdapter时出现问题

时间:2018-05-23 21:34:36

标签: spring spring-mvc jaxb

我正在尝试在我的某个字段上使用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没有帮助。

0 个答案:

没有答案