Spring Boot in the presence of the configuration of the database immediately raises the connection to the database and checks it. If there is no connection to the database, an error is immediately thrown out and the application stops working.
If the database connection is slow, how to configure it so that the connection itself occurs only during the database operation?