Swagger配置修改
This commit is contained in:
@@ -69,7 +69,7 @@ public abstract class BaseSwaggerConfig {
|
|||||||
private SecurityContext getContextByPath(String pathRegex) {
|
private SecurityContext getContextByPath(String pathRegex) {
|
||||||
return SecurityContext.builder()
|
return SecurityContext.builder()
|
||||||
.securityReferences(defaultAuth())
|
.securityReferences(defaultAuth())
|
||||||
.forPaths(PathSelectors.regex(pathRegex))
|
.operationSelector(oc -> oc.requestMappingPattern().matches(pathRegex))
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user