title: Suddenly Springfox Swagger 3.0 is not working with spring webflux
body: <p>Application was working with Springfox Swagger 3.0 few days back. Suddenly it is stopped working. The Jar file which was created before a week is still working but now when we try to build a new Jar file, which is not working, even without any code/library changes. I have even referred the below URL but still facing issue.</p>
  <p><a href="https://stackoverflow.com/questions/59440108/404-error-with-swagger-ui-and-spring-webflux">404 error with swagger-ui and spring webflux</a></p>
  <p>Below given my configuration:</p>
  <p>POM file:</p>
  <pre><code>&lt;properties&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;springfox.version&gt;3.0.0-SNAPSHOT&lt;/springfox.version&gt;
      &lt;spring.version&gt;2.3.1.RELEASE&lt;/spring.version&gt;
  &lt;/properties&gt;
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;spring-libs-milestone&lt;/id&gt;
          &lt;name&gt;Spring Milestone Maven Repository&lt;/name&gt;
          &lt;url&gt;http://oss.jfrog.org/artifactory/oss-snapshot-local/&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  
  &lt;dependencies&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;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
          &lt;version&gt;${springfox.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-spring-webflux&lt;/artifactId&gt;
          &lt;version&gt;${springfox.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
          &lt;version&gt;${springfox.version}&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  <p>Config Files:</p>
  <pre><code>@Configuration
  @EnableSwagger2WebFlux
  public class SwaggerConfiguration implements WebFluxConfigurer {
  
      @Bean
      public Docket createRestApi() {
          return new Docket(DocumentationType.SWAGGER_2)
                  .apiInfo(new ApiInfoBuilder()
                          .description(&quot;My Reactive API&quot;)
                          .title(&quot;My Domain object API&quot;)
                          .version(&quot;1.0.0&quot;)
                          .build())
                  .enable(true)
                  .select()
                  .apis(RequestHandlerSelectors.basePackage(&quot;com.reactive.controller&quot;))
                  .paths(PathSelectors.any())
                  .build();
  
      }
  
      @Override
      public void addResourceHandlers(ResourceHandlerRegistry registry) {
  
          registry.addResourceHandler(&quot;/swagger-ui.html**&quot;)
                  .addResourceLocations(&quot;classpath:/META-INF/resources/&quot;);
  
          registry.addResourceHandler(&quot;/webjars/**&quot;)
                  .addResourceLocations(&quot;classpath:/META-INF/resources/webjars/&quot;);
      }
  }
  </code></pre>
  <p>I am getting 404 error when I try to open the swagger page.</p>
  <p>http://localhost:8080/swagger-ui.html</p>
  <p>Can someone help me with this. Thanks in advance.</p>