修正过滤器匹配URL
This commit is contained in:
parent
a166751929
commit
33accc9296
@ -28,7 +28,7 @@ public class FilterConfig {
|
|||||||
FilterRegistrationBean registrationBean = new FilterRegistrationBean();
|
FilterRegistrationBean registrationBean = new FilterRegistrationBean();
|
||||||
//注册过滤器
|
//注册过滤器
|
||||||
registrationBean.setFilter(new DecryptingOncePerRequestFilter(aesProperties.getKey(), adminRedisTemplate));
|
registrationBean.setFilter(new DecryptingOncePerRequestFilter(aesProperties.getKey(), adminRedisTemplate));
|
||||||
registrationBean.addUrlPatterns("/api/auth/*"); // 设置过滤器应用的URL模式
|
registrationBean.addUrlPatterns("/api/*"); // 设置过滤器应用的URL模式
|
||||||
registrationBean.setOrder(2); // 设置过滤器的顺序
|
registrationBean.setOrder(2); // 设置过滤器的顺序
|
||||||
return registrationBean;
|
return registrationBean;
|
||||||
}
|
}
|
||||||
|
@ -175,15 +175,16 @@
|
|||||||
|
|
||||||
入参示例
|
入参示例
|
||||||
|
|
||||||
```
|
```json
|
||||||
{
|
{
|
||||||
"name":"12",
|
"id": "12351346324324",
|
||||||
"parentOrgId":"xx",
|
"name":"12",
|
||||||
"mrid":"xxx",
|
"parentOrgId":"xx",
|
||||||
"province":"xx",
|
"mrid":"xxx",
|
||||||
"city":"xxx",
|
"province":"xx",
|
||||||
"county":"xxx",
|
"city":"xxx",
|
||||||
"token":"xxx"
|
"county":"xxx",
|
||||||
|
"token":"xxx"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user