我有一些带有一些spring数据存储库的模块。在另一个模块中,我想创建其他存储库。如果我只是添加spring-data-rest模块,那么我会得到错误的url(我想更改名称),所以我试图扩展这些接口,但似乎创建的子接口只是被忽略,有人知道如何解决这个问题吗?
这是基础存储库:
@Repository
public interface SectorRepository extends PagingAndSortingRepository<SectorTrest, Long> {}
这是它的子类:
@RepositoryRestResource(collectionResourceRel = "sectors", path = "sectors", itemResourceRel = "sector")
public interface SectorRepository extends package.SectorRepository {}