title: Spring Boot - Detect and terminate if property not set?
body: <p>Is there any way for a Spring Boot web application to abort at startup if a required property is not set anywhere (neither in the application.properties file nor the other property sources)?  Right now, if the property is included in another property, it seem that Spring Boot simply avoids substitution.</p>
  
  <p>For example, in my application.properties file, I have the line:</p>
  
  <pre><code>quartz.datasource.url=jdbc:hsqldb:${my.home}/database/my-jobstore
  </code></pre>
  
  <p>Right now, if "my.home" is not set elsewhere, Spring Boot is setting the url literally to <em>"jdbc:hsqldb:${my.home}/database/my-jobstore"</em> (no substitution).</p>
  
  <p>I would like to have the application fail to start if the property <code>my.home</code> were not set anywhere else.</p>