安全路径白名单前缀修改
This commit is contained in:
parent
35c2b60d2f
commit
01c9615096
@ -13,21 +13,22 @@ jwt:
|
|||||||
expiration: 604800 #JWT的超期限时间(60*60*24)
|
expiration: 604800 #JWT的超期限时间(60*60*24)
|
||||||
tokenHead: Bearer #JWT负载中拿到开头
|
tokenHead: Bearer #JWT负载中拿到开头
|
||||||
|
|
||||||
ignored: #安全路径白名单
|
secure:
|
||||||
urls:
|
ignored:
|
||||||
- /swagger-ui.html
|
urls: #安全路径白名单
|
||||||
- /swagger-resources/**
|
- /swagger-ui.html
|
||||||
- /swagger/**
|
- /swagger-resources/**
|
||||||
- /**/v2/api-docs
|
- /swagger/**
|
||||||
- /**/*.js
|
- /**/v2/api-docs
|
||||||
- /**/*.css
|
- /**/*.js
|
||||||
- /**/*.png
|
- /**/*.css
|
||||||
- /**/*.ico
|
- /**/*.png
|
||||||
- /webjars/springfox-swagger-ui/**
|
- /**/*.ico
|
||||||
- /actuator/**
|
- /webjars/springfox-swagger-ui/**
|
||||||
- /druid/**
|
- /actuator/**
|
||||||
- /admin/login
|
- /druid/**
|
||||||
- /admin/register
|
- /admin/login
|
||||||
|
- /admin/register
|
||||||
|
|
||||||
aliyun:
|
aliyun:
|
||||||
oss:
|
oss:
|
||||||
|
@ -13,21 +13,22 @@ jwt:
|
|||||||
expiration: 604800 #JWT的超期限时间(60*60*24)
|
expiration: 604800 #JWT的超期限时间(60*60*24)
|
||||||
tokenHead: Bearer #JWT负载中拿到开头
|
tokenHead: Bearer #JWT负载中拿到开头
|
||||||
|
|
||||||
ignored: #安全路径白名单
|
secure:
|
||||||
urls:
|
ignored:
|
||||||
- /swagger-ui.html
|
urls: #安全路径白名单
|
||||||
- /swagger-resources/**
|
- /swagger-ui.html
|
||||||
- /swagger/**
|
- /swagger-resources/**
|
||||||
- /**/v2/api-docs
|
- /swagger/**
|
||||||
- /**/*.js
|
- /**/v2/api-docs
|
||||||
- /**/*.css
|
- /**/*.js
|
||||||
- /**/*.png
|
- /**/*.css
|
||||||
- /**/*.ico
|
- /**/*.png
|
||||||
- /webjars/springfox-swagger-ui/**
|
- /**/*.ico
|
||||||
- /druid/**
|
- /webjars/springfox-swagger-ui/**
|
||||||
- /actuator/**
|
- /druid/**
|
||||||
- /sso/**
|
- /actuator/**
|
||||||
- /home/**
|
- /sso/**
|
||||||
|
- /home/**
|
||||||
|
|
||||||
# 自定义redis key
|
# 自定义redis key
|
||||||
redis:
|
redis:
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package com.macro.mall.security.config;
|
package com.macro.mall.security.config;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
@ -14,7 +13,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@ConfigurationProperties(prefix = "ignored")
|
@ConfigurationProperties(prefix = "secure.ignored")
|
||||||
public class IgnoreUrlsConfig {
|
public class IgnoreUrlsConfig {
|
||||||
|
|
||||||
private List<String> urls = new ArrayList<>();
|
private List<String> urls = new ArrayList<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user