REST access to Mongo based on Spring and build with Gradle