1

I am receiving this pop up, http://localhost:8080/swagger-ui.html. First i thought it is a password for my database or to my GIT. However non of the above is accepted.

enter image description here

package com.gabor.usermanagment.configs;


    import org.springframework.context.annotation.Bean;
    import org.springframework.context.annotation.Configuration;
    import springfox.documentation.builders.RequestHandlerSelectors;
    import springfox.documentation.service.ApiInfo;
    import springfox.documentation.service.Contact;
    import springfox.documentation.spi.DocumentationType;
    import springfox.documentation.spring.web.plugins.Docket;
    import springfox.documentation.swagger2.annotations.EnableSwagger2;
    import static springfox.documentation.builders.PathSelectors.regex;

    @Configuration
    @EnableSwagger2
    public class SwaggerConfig {                                    
          @Bean
            public Docket productApi() {
                return new Docket(DocumentationType.SWAGGER_2)
                        .select()
                        .apis(RequestHandlerSelectors.basePackage("com.gabor.usermanagment.api"))
                        .paths(regex("/customerapi.*"))
                        .build()
                        .apiInfo(metaData());
            }
            private ApiInfo metaData() {
                ApiInfo apiInfo = new ApiInfo(
                        "Spring Boot REST API",
                        "Spring Boot REST API for Online Store",
                        "1.0",
                        "Terms of service",
                        new Contact("John Thompson", "https://springframework.guru/about/", "john@springfrmework.guru"),
                       "Apache License Version 2.0",
                        "https://www.apache.org/licenses/LICENSE-2.0");
                return apiInfo;
            }
        }
Jithin Raj P R
  • 6,667
  • 8
  • 38
  • 69
Gabor Gyarmati
  • 187
  • 2
  • 10

1 Answers1

-2

What is username and password when starting Spring Boot with Tomcat?

After going a little bit further with solutions, i have found it. This issue is resolved.

Gabor Gyarmati
  • 187
  • 2
  • 10