代码备份

master
anthonywj 2 years ago
parent 878a10e35d
commit 16539645de

@ -15,8 +15,8 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
@EnableSwagger2WebMvc
public class Knife4jConfiguration {
@Value("${knife4j.enable:false}")
private boolean enable;
// @Value("${knife4j.enable:true}")
private boolean enable = true;
@Bean(value = "defaultApi2")
public Docket defaultApi2() {
@ -34,4 +34,4 @@ public class Knife4jConfiguration {
.build();
return docket;
}
}
}

Loading…
Cancel
Save