Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
3a63e174
Commit
3a63e174
authored
Nov 23, 2023
by
macro
Browse files
Swagger配置修改
parent
787bef48
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-common/src/main/java/com/macro/mall/common/config/BaseSwaggerConfig.java
View file @
3a63e174
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment