Swagger-ui does not display any api details
<p>I have successfully integrated swagger into my project with </p>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;io.springfox&lt;/groupId&gt;
    &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
    &lt;version&gt;2.4.0&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>I can now hit the url <a href="http://localhost:8080/myApp/v2/api-docs" rel="nofollow noreferrer">http://localhost:8080/myApp/v2/api-docs</a>
and see the json returned describing my REST api. e.g.</p>

<pre><code>{ ? 
   "swagger":"2.0",
   "info":{ ? 
      "description":"Api Documentation",
      "version":"1.0",
      "title":"Api Documentation",
      "termsOfService":"urn:tos",
      "contact":{ ? 

      },
      "license":{ ? 
         "name":"Apache 2.0",
         "url":"http://www.apache.org/licenses/LICENSE-2.0"
      }
   },
   "host":"localhost:8080",
   "basePath":"/myApp",
   "tags":[ ? 
      { ? 
         "name":"staff-controller",
         "description":"Staff Controller"
      },
      { ? 
         "name":"data-controller",
         "description":"Data Controller"
      },
      { ? 
         "name":"master-controller",
         "description":"Master Controller"
      },
      { ? 
         "name":"user-manager-controller",
         "description":"User Manager Controller"
      },
      { ? 
         "name":"client-controller",
         "description":"Client Controller"
      },
      { ? 
         "name":"request-controller",
         "description":"Request Controller"
      }
   ],
</code></pre>

<p>I then pulled in the swagger-ui dependency</p>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;io.springfox&lt;/groupId&gt;
    &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
    &lt;version&gt;2.4.0&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>I created a SwaggerConfig bean</p>

<pre><code>@Configuration
@EnableSwagger2
public class SwaggerConfig {

    @Bean
    public Docket api() {
        return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any()).paths(PathSelectors.any())
            .build();
    }
}
</code></pre>

<p>and a WebMVCConfig</p>

<pre><code>@EnableWebMvc
public class WebMVCConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addResourceHandlers(final ResourceHandlerRegistry registry) {
        registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
        registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
    }

}
</code></pre>

<p>However when I navigate to <a href="http://localhost:8080/myApp/swagger-ui.html" rel="nofollow noreferrer">http://localhost:8080/myApp/swagger-ui.html</a> I see the swagger header but with no information populated.
<a href="https://i.stack.imgur.com/cCBnM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cCBnM.png" alt="Screenshot"></a></p>

<p>Is there anything else that I need to configure? Does the Swagger-ui need a path to the root of my project or similar?</p>

<p>My web.xml does have security configured (although I've tried switching this off to no affect)</p>

<pre><code>&lt;servlet&gt;
    &lt;servlet-name&gt;myApp&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
    &lt;init-param&gt;
        &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
        &lt;param-value&gt;
                classpath:spring/application.xml
            &lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;

&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;myApp&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;

&lt;filter&gt;
    &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
    &lt;filter-class&gt;org.springframework.web.filter.DelegatingFilterProxy&lt;/filter-class&gt;
&lt;/filter&gt;

&lt;filter-mapping&gt;
    &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
&lt;/filter-mapping&gt;
</code></pre>