title: How to connect to remote mongodb running on my raspberrypi with my Spring application?
body: <p>I am just using the mongodb for first time, and also beginner in spring framework. I have a raspberry pi with mongodb running, and I want to connect to it with my Spring application. Spring application now runs well with locally hosted mongodb. </p>
  
  <p>Raspberry pi needs authentication while connecting via ssh. How can I specify all the required parameters on spring application to correctly connect to remote mongodb database. This has been bugging me whole day. Any help would be greatly appreciated. Thanks!</p>