<Spring Data Rest - repository.findById not used f...
# stackoverflow
u
Spring Data Rest - repository.findById not used for item resource GET I need to set some permissions on method level for my API. For this I'm adding @PreAuthorize to the methods in my repository. It works for findAll but not for findById. It seems that the method is not used at all for the route /api/repo/1 To test my instinct, I've provided a default implementation for the findBy method that always returns null and indeed, it does not seem to work however I'm not sure if the generated implementation respects my default implementation or simple overwrites...