Spring REST api with an angularjs application and a Spring MVC application