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