title: How to disable spring-security login screen?
body: <p>I'm using <code>spring-boot-starter-security</code> dependency, to make use of several classes that come with <code>spring-security</code>. But as I want to integrate it in an existing <code>vaadin</code> application, I only want to make use of the classes, and not of the default login/auth screen of spring.</p>
  
  <p>How can I disable this screen?</p>
  
  <p>I cannot make any configurations by extending <code>WebSecurityConfigurerAdapter</code> as my main entry class already <code>extends SpringBootServletInitializer</code>. Also, vaadin applications basically run on the same URL path all the time and use internal navigation.</p>
  
  <pre><code>@EnableAutoConfiguration
  public class MyApp extends SpringBootServletInitializer { 
  
          @Override
          protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
              return application.sources(MyApp.class);
          }
  
          public static void main(String[] args) {
              SpringApplication.run(MyApp.class, args);
          }
  }
  </code></pre>
  
  <p>So, what could I do to disable the login screen, but though make use of spring security features?</p>