Relative Content

Tag Archive for javasql-serverspring-bootspring-data-jpahikaricp

When we have multiple data sources and one went down or firewall issue how can we catch and up the spring boot app?

we need to connect to three databases one is oracle, two more SQL server, 3rd one does not have firewall open in local environment and in prod frequently changing password due to that application going down when this database connection not up initializing time, we are getting below exception, tried below approaches as well but still not working.
approach 1: added try catch block like below: