[英]Remove resources automatically added by FF4J
recently i have added FF4j dependency on my application, after that new resource end points have appeared in my swagger ui, is there any way to disable these end points?最近我在我的应用程序上添加了 FF4j 依赖项,在我的 swagger ui 中出现新的资源端点之后,有没有办法禁用这些端点?
the dependency add was依赖添加是
<dependency>
<groupId>org.ff4j</groupId>
<artifactId>ff4j-spring-boot-starter</artifactId>
<version>${ff4j.version}</version>
</dependency>
<dependency>
If you are using SpringDoc:如果您使用的是 SpringDoc:
springdoc.packages-to-exclude=com.unwantedPackage
If you are using SpringFox:如果您使用的是 SpringFox:
@Bean
public Docket productApi() {
return new Docket(DocumentationType.SWAGGER_2)
.select().paths(Predicate.not(PathSelectors.regex("/api/ff4j/store.*")).apis(RequestHandlerSelectors.basePackage("com.package.controller"))
.paths(PathSelectors.any())
.build().apiInfo(apiInfo());
Remove Basic Error Controller In SpringFox SwaggerUI 在 SpringFox SwaggerUI 中删除基本错误 Controller
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.