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
01c96150
Commit
01c96150
authored
Nov 23, 2019
by
macro
Browse files
安全路径白名单前缀修改
parent
35c2b60d
Changes
3
Hide whitespace changes
Inline
Side-by-side
mall-admin/src/main/resources/application.yml
View file @
01c96150
...
...
@@ -13,21 +13,22 @@ jwt:
expiration
:
604800
#JWT的超期限时间(60*60*24)
tokenHead
:
Bearer
#JWT负载中拿到开头
ignored
:
#安全路径白名单
urls
:
-
/swagger-ui.html
-
/swagger-resources/**
-
/swagger/**
-
/**/v2/api-docs
-
/**/*.js
-
/**/*.css
-
/**/*.png
-
/**/*.ico
-
/webjars/springfox-swagger-ui/**
-
/actuator/**
-
/druid/**
-
/admin/login
-
/admin/register
secure
:
ignored
:
urls
:
#安全路径白名单
-
/swagger-ui.html
-
/swagger-resources/**
-
/swagger/**
-
/**/v2/api-docs
-
/**/*.js
-
/**/*.css
-
/**/*.png
-
/**/*.ico
-
/webjars/springfox-swagger-ui/**
-
/actuator/**
-
/druid/**
-
/admin/login
-
/admin/register
aliyun
:
oss
:
...
...
mall-portal/src/main/resources/application.yml
View file @
01c96150
...
...
@@ -13,21 +13,22 @@ jwt:
expiration
:
604800
#JWT的超期限时间(60*60*24)
tokenHead
:
Bearer
#JWT负载中拿到开头
ignored
:
#安全路径白名单
urls
:
-
/swagger-ui.html
-
/swagger-resources/**
-
/swagger/**
-
/**/v2/api-docs
-
/**/*.js
-
/**/*.css
-
/**/*.png
-
/**/*.ico
-
/webjars/springfox-swagger-ui/**
-
/druid/**
-
/actuator/**
-
/sso/**
-
/home/**
secure
:
ignored
:
urls
:
#安全路径白名单
-
/swagger-ui.html
-
/swagger-resources/**
-
/swagger/**
-
/**/v2/api-docs
-
/**/*.js
-
/**/*.css
-
/**/*.png
-
/**/*.ico
-
/webjars/springfox-swagger-ui/**
-
/druid/**
-
/actuator/**
-
/sso/**
-
/home/**
# 自定义redis key
redis
:
...
...
mall-security/src/main/java/com/macro/mall/security/config/IgnoreUrlsConfig.java
View file @
01c96150
package
com.macro.mall.security.config
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
...
...
@@ -14,7 +13,7 @@ import java.util.List;
*/
@Getter
@Setter
@ConfigurationProperties
(
prefix
=
"ignored"
)
@ConfigurationProperties
(
prefix
=
"
secure.
ignored"
)
public
class
IgnoreUrlsConfig
{
private
List
<
String
>
urls
=
new
ArrayList
<>();
...
...
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