I'm using spring-data-rest.

Given following repository : 

```
@RepositoryRestResource
public interface MyRepository extends PagingAndSortingRepository<MyEntity, Long> {}

```

The annotation `@RestResource(exported = false)` on the `save()` method makes the framework return a `405 Method Not Allowed` error when using methods POST, PUT and PATCH. 

My question : How can I just return a 405 error on PUT method while POST and PATCH are still allowed for this repository ? 

Thanks !