title: ClassNotFoundException with Spring WebFlux Security
body: <p>I'm having the following problem:</p>
  
  <p>I am trying to setup a basic Spring Boot (2.0.0.M2) Project containing Spring Webflux and Spring Security.</p>
  
  <p>My pom.xml looks like this (generated via start.spring.io):</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.0.0.M2&lt;/version&gt;
      &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
  
  &lt;dependencies&gt;
      ...
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-webflux&lt;/artifactId&gt;
      &lt;/dependency&gt;
      ...
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>SpringSecurityConfig:</p>
  
  <pre><code>@EnableWebFluxSecurity
  public class SecurityConfig extends WebFluxSecurityConfiguration {}
  </code></pre>
  
  <p>I am not getting any further because I get an exception on startup:</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: org.springframework.security.web.server.context.SecurityContextRepository
  </code></pre>
  
  <p>So I figure that the whole <code>org.springframework.security.web.server</code> package is not on the classpath, although it should be there, since it is included in the <a href="http://docs.spring.io/autorepo/docs/spring-security/5.0.0.M2/api/" rel="nofollow noreferrer">API docs</a>.</p>
  
  <p>Seems like I am doing something wrong, but I don't know what.</p>