【发布时间】:2014-08-25 23:25:48
【问题描述】:
我似乎无法将我的存储库映射到以下位置以外的任何位置:
@RepositoryRestResource(collectionResourceRel = "item", path = "item")
public interface ItemRepository extends PagingAndSortingRepository<Item, Long> {
我认为我可以使用:
path = "/some/other/path/item"
但映射无法解析。我明白了:
HTTP ERROR 404
Problem accessing /some/other/path/item. Reason:
Not Found
在spring-data javadoc中path定义为:"The path segment under which this resource is to be exported."
我做错了什么?
【问题讨论】:
-
介意我问你最后做了什么吗?我发现自己的处境和你完全一样。
标签: java spring configuration spring-data spring-boot