title: Spring Boot [How to properly use .exit]
body: <p>Apparently, as I  read in different threads, Closing ConfigurableApplicationContext uses .exit, and I read that it can be implemented in many ways. I tried to use it like this...</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
      SpringApplication app = new SpringApplication(Application.class);
      ConfigurableApplicationContext applicationContext = app.run(args);
      app.exit(applicationContext);
  }
  </code></pre>
  
  <p>When I run the program w/out the exit part, it runs okay, but now when I placed the exit part, even the login page does not display</p>