Commit 3a63e174 authored by macro's avatar macro
Browse files

Swagger配置修改

parent 787bef48
......@@ -69,7 +69,7 @@ public abstract class BaseSwaggerConfig {
private SecurityContext getContextByPath(String pathRegex) {
return SecurityContext.builder()
.securityReferences(defaultAuth())
.forPaths(PathSelectors.regex(pathRegex))
.operationSelector(oc -> oc.requestMappingPattern().matches(pathRegex))
.build();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment