Java 为SpringDataREST存储库中的自定义方法生成了什么url?

Java 为SpringDataREST存储库中的自定义方法生成了什么url?,java,spring,spring-data-rest,Java,Spring,Spring Data Rest,我有一个使用此方法的spring数据rest存储库: long countByName(String name); 我应该使用什么URL从客户端访问此方法?首先,您必须添加@Param注释: long countByUuid(@Param("uuid") String uuid); 然后您可以使用以下url访问此方法: /{repository}/search/countByUuid?uuid=test

我有一个使用此方法的spring数据rest存储库:

long countByName(String name);

我应该使用什么URL从客户端访问此方法?

首先,您必须添加
@Param
注释:

long countByUuid(@Param("uuid") String uuid);
然后您可以使用以下url访问此方法:

/{repository}/search/countByUuid?uuid=test