title: Spring Boot - Slow to start application on different connections
body: <p>I'm experiencing some weirdness with a Spring Boot application.</p>
  
  <p>When I'm connected to WIFI A (my home network) or disconnected from the internet entirely, the application starts within 6 seconds.</p>
  
  <p>When I'm connected to WIFI B (my work network) the application takes 1.5 minutes to start.</p>
  
  <p>This is a simple Hello, world! spring application. The main class looks like this:</p>
  
  <pre><code>import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  
  @SpringBootApplication
  public class Application {
  
      public static void main(String[] args) {
          System.out.println("START := " + System.currentTimeMillis());
          SpringApplication.run(Application.class, args);
          System.out.println("STOP := " + System.currentTimeMillis());
      }
  }
  </code></pre>
  
  <p>I see that the START timestamp is printed at roughly the same speed, so it must be the SpringApplication.run. This is a bare class, so there is no spring configurations otherwise. Why would a change in WIFI connection cause such lag to start? I'm running it both using <code>mvn spring-boot:run</code> on Mac OSX</p>