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.
Spring Boot 3.1 to 3.3 upgrade NoClassDefFoundError: RestTemplateExchangeTagsProvider
It seems like this error is coming from some type of auto configuration but not sure how to resolve it.