I have Spring boot mongo db app, when i start running this application if mongo host is alive, am able to see the my app is up and running successfully, if my mongo host is down when i start my application my app failed to start. is there any way even thought if mongo host is down my application should be up and running.
could someone please help me on this?
am using spring boot mongo properties in my application
spring.data.mongodb.repositories.enabled=true
spring.data.mongodb.port=27017
spring.data.mongodb.database=db
spring.data.mongodb.uri=mongodb://mongo-node-1.ballu/db
have same problem with spring boot kafka also.