title: Spring Boot- Throw an Error and Stop application starting up on some criteria
body: <p>I am working on an application where in a bean's post construct method i am adding some logic to create an object. Now , what I want to do is, if there is an exception and the creation of the object has some error, then do not let the application start up. Yes, I can see an exception being thrown on the console when it starts up, if there is any issue with the construction of an object, but I would like something better than that to inform me that construction of an object has failed, and what better criteria than application failing to start up.</p>
  
  <p>Any help is much appreciated.</p>
  
  <p>Thank you in advance. </p>