1
resposta

Resolved [org.springframework.web.servlet.NoHandlerFoundException: No handler found for GET /nome-aplicacao/swagger-ui]

RESOLVIDO: https://github.com/Nallamachu/SwaggerConfiguration

Boa tarde professor, estou tomando o seguinte erro quando chamo a URL:

Resolved [org.springframework.web.servlet.NoHandlerFoundException: No handler found for GET /nome-aplicacao/swagger-ui]

Não estou conseguindo prosseguir. Poderiam me ajudar? Segue abaixo como está a classe

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class SwaggerConfiguration {

    @Bean
    public Docket api() {
        return new Docket(DocumentationType.SWAGGER_2)
                .select()
                .apis(RequestHandlerSelectors.basePackage("br.com.itau.seguros.desafio"))
                .build();
    }
}
1 resposta

Olá Guilherme, obrigado por compartilhar a solução conosco

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software