Exposing link on collection entity in spring data REST

前端 未结 2 1323
执念已碎
执念已碎 2020-12-15 12:40

Using spring data REST I have exposed a ProjectRepository that supports listing projects and performing CRUD operations on them. When I go to http://local

2条回答
  •  借酒劲吻你
    2020-12-15 13:00

    I had the same issue. What worked for me was:

    public class ProjectsResourceProcessor implements ResourceProcessor>> {
    
        private final @NonNull EntityLinks entityLinks;
    
        @Override
        public PagedResources> process(PagedResources> pagedResources) {
    
           ...
    
            return pagedResources;
        }
    }
    

提交回复
热议问题