title: Swagger Configuration for controllers from different packages in spring-boot application
body: <p>I have rest controllers in a spring-boot application.</p>
  
  <p>Project structure:</p>
  
  <blockquote>
    <p>Controllers</p>
  </blockquote>
  
  <ul>
  <li><p>Package1</p>
  
  <p>ControllerClass1.java</p>
  
  <p>ControllerClass2.java</p></li>
  <li><p>Package2</p>
  
  <p>ControllerClass3.java</p>
  
  <p>ControllerClass4.java</p></li>
  </ul>
  
  <blockquote>
    <p>Services</p>
    
    <p>Models</p>
  </blockquote>
  
  <p><strong>localhost:8080/app/swagger-ui.html shows only one package controllers.</strong> </p>
  
  <p>ControllerClass1 </p>
  
  <pre><code>     Method1 GET 
  
       Method2 POST
  </code></pre>
  
  <p>ControllerClass2</p>
  
  <pre><code>     Method1 PUT
  
       Method2 POST
  </code></pre>
  
  <p>I want to put all controllers from all packages on swagger UI. </p>