Do not fail if h2Console bean cannot connect to db

See gh-23566
This commit is contained in:
Shraddha Yeole
2020-10-01 16:24:43 -07:00
committed by Madhura Bhave
parent 3118ca9313
commit 2d76de29ff
2 changed files with 27 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ public class H2ConsoleAutoConfiguration {
logger.info("H2 console available at '" + path + "'. Database available at '"
+ connection.getMetaData().getURL() + "'");
}
catch (SQLException ex) {
catch (Exception ex) {
// Continue
}
});