title: Shutdown spring boot application from multiple applications which are running on single tomcat
body: <p>I want to shutdown spring boot application programmatically from multiple applications running on single tomcat server without stopping tomcat.</p>
  
  <p>I have searched over Google found couple of solutions like </p>
  
  <pre><code>System.exit(0) 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>SpringbootApplication.exit()
  </code></pre>
  
  <p>causing shutting down tomcat. I don't want to shutdown tomcat. Just the particular application.</p>
  
  <p>How can I do that.. programmatically is there any way to do this.</p>
  
  <p>Pls help!</p>