Spring Data Rest and custom repositories
问题 Is it possible to export REST resources with custom (spring data) repositories? How does it work? I cannot find any example. I also have not found any claim that it is impossible. 回答1: Spring data rest specifically detects and does not export custom implementations on repositories. See the reference to the codebase here and the reason why here. If you want to expose a custom repository implementation, you will need to use a custom controller. Documentation for how to appropriately use custom