title: connect mongohq or mongolab using spring framework
body: <p>i try to connect to mongohq using spring. i got some information from <a href="https://devcenter.heroku.com/articles/mongohq#use-with-java" rel="nofollow">heroku</a> but while connecting with that code <code>MongoURI</code> class are deprecated .
  I used <code>spring-data-mongodb</code> version <code>1.2.0.RELEASE</code>.  and <code>mongo-java-driver - 2.11.0</code></p>
  
  <p>can any one tell how to connect to mongohq or mongolab using spring</p>