【发布时间】:2016-07-11 01:25:24
【问题描述】:
我们正在尝试在其余端点中采用标准化,并想知道为什么 Spring Data Rest 使用“搜索”端点公开 FindBy 操作。例如http://localhost:8080/ws_springtcri_next/events/search/findByEventCityIn。这是标准原则吗?
public interface EventRepository extends JpaRepository<Event, Integer>,
JpaSpecificationExecutor<Event>,
QueryDslPredicateExecutor<Event> {
Page<Event> findByEventCityIn(
@Param("eventCity") Collection<String> cities, Pageable pageable);
}
【问题讨论】:
标签: spring-data-rest