title: Controller does not appear in swagger-ui.html
body: <p>I use Swagger 2 with non-spring-boot and I also can deploy my app on Tomcat and run it successfully. But the controller does not appear in <code>swagger-ui.html</code>, just the empty page with the green swagger title show up. I have spent two days on this issue. Would you give me some advice?</p>
  
  <p>@Controller means the class as bellow:</p>
  
  <pre><code> @Api
   @Controller
   @RequestMapping("/user")
   public class UserController {
  
   protected Logger logger = LoggerFactory.getLogger(UserController.class);
  
   @Autowired
   private UserService userService;
  
   @RequestMapping("/showInfos")
   public @ResponseBody Object showUserInfos(){
      logger.info("-----------------------showUserInfos-----------------------");
      List&lt;UserInfo&gt; userInfos = userService.getUsers();
      return userInfos;
  }
  </code></pre>
  
  <p>my spring-mvc.xml configuration as follows:</p>
  
  <pre><code>    &lt;mvc:annotation-driven/&gt;
  &lt;!@Controller inject bean --&gt;
  &lt;context:component-scan base-package="com.roy.demo , version" /&gt; 
  
  &lt;!-- Enables swgger ui --&gt;
  &lt;mvc:resources mapping="swagger-ui.html" location="classpath:/META-INF/resources/" /&gt;
  &lt;mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/" /&gt; 
  
  &lt;!-- Include a swagger configuration --&gt;
  &lt;bean name="/applicationSwaggerConfig" class="com.roy.demo.config.ApplicationSwaggerConfig" /&gt;
  </code></pre>
  
  <p>also my swagger configuration class is as follows:</p>
  
  <pre><code>@EnableSwagger2  
  public class ApplicationSwaggerConfig {
  
  private static final Logger LOGGER = Logger.getLogger(ApplicationSwaggerConfig.class);
  
  @Bean
  public Docket api() {
      LOGGER.info("################################ into Docket api() #####################################");
      return new Docket(DocumentationType.SWAGGER_2)
              .select()
              .apis(RequestHandlerSelectors.basePackage("com.roy.demo.controller"))
              .paths(PathSelectors.any())
              .build();
  }
  </code></pre>
  
  <p>}</p>
  
  <p>my maven pom.xml swagger2 dependency as follows:</p>
  
  <pre><code>        &lt;!-- Swagger 2.0 --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.swagger&lt;/groupId&gt;
          &lt;artifactId&gt;swagger-core&lt;/artifactId&gt;
          &lt;version&gt;1.5.3&lt;/version&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;2.5.0&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;2.5.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Bellow is the result when i enter the endpoint url:<a href="http://localhost:8080/Spring_SpringMVC_Mybatis/swagger-ui.html" rel="noreferrer">http://localhost:8080/Spring_SpringMVC_Mybatis/swagger-ui.html</a></p>
  
  <p><a href="https://i.stack.imgur.com/l3wag.png" rel="noreferrer"><img src="https://i.stack.imgur.com/l3wag.png" alt="enter image description here"></a></p>