Change configurations for mongo in spring context