您应该从文档开始: https://docs.spring.io/spring-data/jpa/docs/1.5.0.RELEASE/reference/html/jpa.repositories.html
在那之后你可以看到其他的例子 here 或 here