title: Swagger ui is not getting loaded with Oauth2
body: <p>I have developed one demo application with spring boot and oauth2. I have three applications as below.</p>
  
  <ol>
  <li>Resource api: This will have all the method that we need to secure.</li>
  <li>Authentication server: This is a oauth2 server that provides the tokens</li>
  <li>UI: which will be able to access resources after successfully login via Authentication server.</li>
  </ol>
  
  <p>I have few resources (controllers) that can be accessed publicly. But when I am trying to access the swagger ui it asks me for the full authentication. When I added the below code the swagger page is coming but not only one dropdown in whole page and that is also broken.  </p>
  
  <pre><code>http
  .anonymous() //allow anonymous access
  .and()
  .authorizeRequests()
  .antMatchers("/shouldbepublic/**", "/swagger-ui**/**").permitAll().and() //this should be public resources
  .formLogin().loginPage("/login").permitAll()
  .and()
  .requestMatchers().antMatchers("/login", "/oauth/authorize", "/oauth/confirm_access")
  .and()
  .authorizeRequests().anyRequest().authenticated();
  </code></pre>