I have a spring boot application configured two databases into it. The application is starting and working fine when both the databases are up and running. But I want to make it up and running for the scenario when first database is reachable and second database is not reachable. Can someone help on this.
Asked
Active
Viewed 40 times
0
-
Have a look at creating the second datasource programmatically via DataSourceBuilder. See [link][https://www.baeldung.com/spring-boot-configure-data-source-programmatic] – PaulNUK Nov 17 '21 at 09:02
-
Hi, please see if this helps you https://stackoverflow.com/questions/45409196/how-to-make-spring-server-to-start-even-if-database-is-down – JCompetence Nov 17 '21 at 19:47
-
Does this answer your question? [How to make Spring server to start even if database is down?](https://stackoverflow.com/questions/45409196/how-to-make-spring-server-to-start-even-if-database-is-down) – pringi Nov 19 '21 at 17:35