Relative Content

Tag Archive for springspring-bootspring-autoconfiguration

Spring Boot – Disable db connection at the startup

This is regarding disabling the db connection at the startup. we do not want to connect to the db during the starting of the application.
I googled around and checked the previous questions in Stack overflow and checked the spring documentation to disabling the database connection at the startup. configuration suggested is exclude= [DataSourceAutoConfiguration]. below are the annotation on the SpringApplication class but the application fails and does not start.