i try to connect to mongohq using spring. i got some information from heroku but while connecting with that code MongoURI
class are deprecated .
I used spring-data-mongodb
version 1.2.0.RELEASE
. and mongo-java-driver - 2.11.0
can any one tell how to connect to mongohq or mongolab using spring