I have a spring web application and using tomcat to deploy my application(war). I have some initialization code which does database upgrade using liquibase.If any exception occurs, the deployment fails as expected, But tomcat is coming up and any request to my application is resulting in 404 not found error.
But I want some fail fast way to stop the tomcat as soon as the deployment fails. is there any way to achieve this?