在本人的Spring Data JPA教程的第二部分描述了如何用Spring Data JPA创建一个简单的CRUD应用,本博文将描述如何在Spring Data JPA中使用query方法创建自定义查询,为了有一个合理的示例,我为我的应用创建了三个要求: 实现通过他们的last name作为搜索条件搜索到person. 搜索功能必须返回这样的person,它们的last name准确匹配搜索条件. 搜索不区分大小写. 现在开始扩展示例应用. 所需步骤 完成要求的步骤如下: 创建一个query方…