从我的招摇中删除基本错误控制器

时间:2019-07-12 09:46:04

标签: java spring swagger swagger-ui swagger-2.0

  • 列表项

我正在使用springboot2.0和swaggerfox,但是当我按下端口号时,一些大的错误控制器会显示在我的挥杆中,你们可以解决它,并告诉我必须在哪里更改

package com.contact;
import org.springframework.boot.SpringApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@EnableSwagger2
public class SpringBootMongoDBcontactApplication {

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

}

@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-12-20T05:49:52.130Z")

@Api(value = "Contacts")
public interface ContactAPI {

swagger annotation used in controller
Basic error controller

0 个答案:

没有答案