findBy URI not working in Spring Data Rest
问题 By default, in Spring Data Rest the @Id of the entity is not exposed. In line with the REST rules, we're supposed to use the URI of the resource to refer to it. Given this assumption, the findBy queries should work if you pass a URI to them, but they don't. For example, say I have a one-to-many relationship between Teacher and Student. I want to find students by teacher. List<Student> findByTeacher(Teacher teacher) http://localhost:8080/repositories/students/search/findByTeacher?teacher=http: