Set order of RepositoryRestHandlerMapping to LOWEST_PRECEDENCE - 100 to give core Spring Framework components the chance to hook into the right place in the chain. Refactored RepositoryRestHandlerMapping to really check for the exposed path and added test cases for handler method resolution.