title: Spring boot: disable security auto configuration
body: <p>I have multipart web project. <code>Web Admin</code> part contains:</p>
  
  <pre><code>compile('org.springframework.boot:spring-boot-starter-web')
  compile("org.springframework.boot:spring-boot-starter-thymeleaf")
  compile("org.springframework.boot:spring-boot-starter-jetty")
  compile("org.springframework.boot:spring-boot-starter-actuator")
  </code></pre>
  
  <p>Main project build file contains: </p>
  
  <pre><code>compile group: 'org.springframework', name: "spring-webmvc", version: springVersion
  compile(group: 'org.springframework.security', name: "spring-security-web", version: springSecurityVersion) { exclude(module: 'spring-jdbc') }
  </code></pre>
  
  <p>Spring Boot application file:</p>
  
  <pre><code>@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
  public class WebAdminApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(WebAdminApplication.class, args);
      }
  }
  </code></pre>
  
  <p>But when I'm doing http request to my admin part I'm getting user and password in my <code>AuthenticationProvider</code>:</p>
  
  <pre><code>auth.getPrincipal() -&gt; user
  auth.getCredentials() -&gt; caeebd3a-307b-4edf-8f2f-833fad9ebc00
  </code></pre>
  
  <p>How I can disable auto security? </p>