title: Whitelabel Error Page Swagger, This application has no explicit mapping for /error, so you are seeing this as a fallback swagger2:3.0.0-SNAPSHOT
body: <p>Trying to configure swagger in spring boot 2.3.1.</p>
  <p><strong>Gradle Config</strong></p>
  <pre><code>repositories {
      mavenCentral()
      maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
  }
  
  dependencies {
      implementation 'org.springframework.boot:spring-boot-starter-data-rest'
      testImplementation('org.springframework.boot:spring-boot-starter-test') {
          exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
      }
      implementation &quot;io.springfox:springfox-boot-starter:3.0.0-SNAPSHOT&quot;
      compile('io.springfox:springfox-swagger2:3.0.0-SNAPSHOT')
      compile('io.springfox:springfox-swagger-ui:3.0.0-SNAPSHOT')
  }
  </code></pre>
  <p><strong>Swagger Config</strong></p>
  <pre><code>@Configuration
  @EnableSwagger2
  public class ApplicationSwaggerConfig {
      @Bean
      public Docket employeeApi() {
          return new Docket(DocumentationType.SWAGGER_2)
                  .select()
                  .apis(RequestHandlerSelectors.any())
                  .paths(PathSelectors.any())
                  .build()
                  .apiInfo(getApiInfo());
      }
  
      //create api metadata that goes at the top of the generated page
      private ApiInfo getApiInfo() {
          return new ApiInfoBuilder()
                  .title(&quot;Employee API&quot;)
                  .version(&quot;1.0&quot;)
                  .description(&quot;API for managing employees.&quot;)
                  .contact(new Contact(&quot;Craig Golightly&quot;, &quot;http://globomantics.com&quot;, &quot;craig@globomantics.com&quot;))
                  .license(&quot;Apache License Version 2.0&quot;)
                  .build();
      }
  }
  </code></pre>
  <p><strong>Controller</strong></p>
  <pre><code>@RestController
  public class TestController {
      @RequestMapping(value = &quot;/HelloWorld&quot;, method = RequestMethod.GET)
      public String HelloWorld(){
          return &quot;Hello World&quot;;
      }
  }
  </code></pre>
  <p><strong>Application</strong></p>
  <pre><code>@SpringBootApplication
  public class MeroRentalRestApiApplication {
      public static void main(String[] args) {
          SpringApplication.run(MeroRentalRestApiApplication.class, args);
      }
  }
  </code></pre>
  <p><strong>Error</strong></p>
  <pre><code>Whitelabel Error Page
  This application has no explicit mapping for /error, so you are seeing this as a fallback.
  Mon Jul 06 21:19:55 AEST 2020
  There was an unexpected error (type=Not Found, status=404).
  </code></pre>
  <p><a href="https://i.stack.imgur.com/drScz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/drScz.png" alt="enter image description here" /></a></p>
  <p>Here is the package reference
  <a href="https://i.stack.imgur.com/186bg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/186bg.png" alt="enter image description here" /></a></p>