コメントのリポジトリを保存し、コメントが投稿された投稿の ID で検索する次のコードがあります。
@RepositoryRestResource(path = "/comments")
public interface CommentsRestRepository extends MongoRepository<Comment, String> {
Page<Comment> findByPostID(@Param("postID") String postID, Pageable pageable);
}
URLを使用すると機能しhttp://localhost:8080/comments/search/findByPostID?postID=55ff128577c8dc3d6b311da7
ます。ただし、&page=1&size=5
ページ/サイズ/並べ替えの組み合わせまたはその他の組み合わせを追加すると、これらのパラメーターは完全に無視されます。どうしてこれなの?