If you are using interfaces only you can use default methods to do simple overrides of the CrudRepository or JpaRepository:
public interface MyCustomRepository extends CrudRepository {
@Override
default S save(S entity)
{
throw new UnsupportedOperationException("writes not allowed");
}
}