Using a combination of Spring Boot 1.4.1.Release and Spring Data Couchbase 2.1.3.RELEASE, is there a way to prevent the application from crashing if it cannot connect to couchbase?
Current behavior . The application cannot connect to couchbase at startup and exit.
Purpose : The application will continue to work even if it cannot connect to Couchbase, use the timeout configurations in CouchbaseEnvironment, and constantly try to connect in the background.
In Spring Boot, we can configure Spring JDBC to ignore startup crashes with spring.datasource.continue-on-error=true
. Is there something similar in conjunction with trying to fail again in Spring Data Couchbase?
source share