title: springfox doesn't work with spring-boot-admin-server
body: <p>My spring boot application has integrated swagger-ui with springfox and spring admin server. However, I found the swagger ui could not display when I add the annotation @EnableAdminServer.</p>
  
  <p>I searched for issues in both repo on github and I found nothing like my issue. Is there anyone who encounter this?</p>
  
  <p>My POM:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.zgiot&lt;/groupId&gt;
      &lt;artifactId&gt;app-server&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;name&gt;app-server&lt;/name&gt;
      &lt;description&gt;app server&lt;/description&gt;
  
      &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;1.5.6.RELEASE&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;modules&gt;
          &lt;module&gt;../common&lt;/module&gt;
      &lt;/modules&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
  
          &lt;version.mybatis&gt;1.2.0&lt;/version.mybatis&gt;
          &lt;version.druid&gt;1.1.0&lt;/version.druid&gt;
          &lt;version.swagger&gt;2.7.0&lt;/version.swagger&gt;
          &lt;version.fastjson&gt;1.2.37&lt;/version.fastjson&gt;
          &lt;version.common&gt;2.6&lt;/version.common&gt;
          &lt;version.guava&gt;22.0&lt;/version.guava&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-validation&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-websocket&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-configuration-processor&lt;/artifactId&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
          &lt;!--monitor--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;de.codecentric&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-admin-server&lt;/artifactId&gt;
              &lt;version&gt;1.5.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;de.codecentric&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-admin-server-ui&lt;/artifactId&gt;
              &lt;version&gt;1.5.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;de.codecentric&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-admin-starter-client&lt;/artifactId&gt;
              &lt;version&gt;1.5.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!--数据库相关--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.alibaba&lt;/groupId&gt;
              &lt;artifactId&gt;druid-spring-boot-starter&lt;/artifactId&gt;
              &lt;version&gt;${version.druid}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mybatis.spring.boot&lt;/groupId&gt;
              &lt;artifactId&gt;mybatis-spring-boot-starter&lt;/artifactId&gt;
              &lt;version&gt;${version.mybatis}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!--Json相关--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.alibaba&lt;/groupId&gt;
              &lt;artifactId&gt;fastjson&lt;/artifactId&gt;
              &lt;version&gt;${version.fastjson}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!--http/websocket client--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.asynchttpclient&lt;/groupId&gt;
              &lt;artifactId&gt;async-http-client&lt;/artifactId&gt;
              &lt;version&gt;2.0.34&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!--commons--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-lang&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
              &lt;version&gt;${version.common}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
              &lt;artifactId&gt;guava&lt;/artifactId&gt;
              &lt;version&gt;${version.guava}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!--swagger doc--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
              &lt;version&gt;${version.swagger}&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;artifactId&gt;guava&lt;/artifactId&gt;
                      &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&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;${version.swagger}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.restdocs&lt;/groupId&gt;
              &lt;artifactId&gt;spring-restdocs-mockmvc&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Application :</p>
  
  <pre><code>@SpringBootApplication
  @EnableAdminServer
  public class AppServerApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(AppServerApplication.class, args);
      }
  }
  </code></pre>
  
  <p>yuml file:</p>
  
  <pre><code>spring:
    application:
      name: app-server
    boot:
      admin:
        url: http://localhost:9090/app-server
  management.security.enabled: false
  
  
  spring.profiles.active: dev
  
  
  server:
    context-path: /app-server
    port: 9090
  
  
  spring.datasource.druid:
    url: ${mysql.url}
    username: ${mysql.username}
    password: ${mysql.password}
    initial-size: 5
    min-idle: 2
    max-active: 20
    test-on-borrow: true
    driver-class-name: com.mysql.jdbc.Driver
  
  
  
  websocket:
    server-url: ${websocket.server-url}
    handshake-timeout: ${websocket.handshake-timeout}
    connection-timeout: ${websocket.connection-timeout}
  mybatis:
    configuration:
      map-underscore-to-camel-case: true
  </code></pre>
  
  <p>It works when I remove the annotation @EnableAdminServer. It looks like there is an conflict with the url router.</p>