title: Spring boot: Handling mongodb timeoutException
body: <p>When Mongodb is down, the spring boot  application is down. I wish to handle exception  of connectiontimeout and log the error without stopping application.
  When finding an item from database is failed because the connection is not possible, the application should do another treatment like calling web service to find data.
  Did you have any idea about this ?</p>
  
  <p>Configuration</p>
  
  <blockquote>
    <p>spring.data.mongodb.uri=mongodb://${MONGODB_DB_HOST}:${MONGODB_DB_PORT}/${MONGODB_DB_DATABASE}?connectTimeoutMS=${mongodb.connection.timeout}</p>
  </blockquote>