package br.edu.ufcg;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.ApiInfo;
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;

@EnableSwagger2
@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

	@Bean
    public Docket newsApi() {
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(apiInfo())
                .select()
                .paths(regex("/.*"))
                .build();
    }

    private ApiInfo apiInfo() {
        return new ApiInfoBuilder()
                .title("Projeto DACA")
                .description("Projeto da disciplina Desenvolvimento de Aplicações Corporativas Avançadas," +
                        "período 2016.1, Universidade Federal de Campina Grande.\nClone do backend do sistema" +
                        "Dirlididi.")
                .contact("Diego Augusto <diego.moura.oliveira@ccc.ufcg.edu.br>, " +
                        "Gervásio Júnior <gervasio.junior@ccc.ufcg.edu.br>")
                .license("MIT")
                .licenseUrl("https://github.com/equipe-daca/projeto/blob/master/LICENSE")
                .version("1.0")
                .build();
    }
}

package br.edu.ufcg;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import static com.google.common.base.Predicates.*;
import static springfox.documentation.builders.PathSelectors.*;

@EnableSwagger2
@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

	@Bean
    public Docket newsApi() {
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(apiInfo())
                .select()
                .paths(and(regex("/.*"), not(regex("/error.*"))))
                .build();
    }

    private ApiInfo apiInfo() {
        return new ApiInfoBuilder()
                .title("Projeto DACA")
                .description("Projeto da disciplina Desenvolvimento de Aplicações Corporativas Avançadas," +
                        "período 2016.1, Universidade Federal de Campina Grande.\nClone do backend do sistema" +
                        "Dirlididi.")
                .contact("Diego Augusto <diego.moura.oliveira@ccc.ufcg.edu.br>, " +
                        "Gervásio Júnior <gervasio.junior@ccc.ufcg.edu.br>")
                .license("MIT")
                .licenseUrl("https://github.com/equipe-daca/projeto/blob/master/LICENSE")
                .version("1.0")
                .build();
    }
}

Remove controller default do Spring