Spring Data Rest - change of base path not working

I tried to change base path of Spring Data Rest in application.properties file, but for some reason it didn't work. The problem was in custom config...

Perform an update using Angular's $resource and Spring Data REST