我正在使用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