|
@@ -41,12 +41,13 @@ public class DefaultWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter {
|
|
|
|
|
|
@Bean
|
|
|
public RequestPermissionInterceptor getRequestPermissionInterceptor() {
|
|
|
- String[] exclusions = new String[]{RegExpUtil.escape(".*/exam/{id}.*"),
|
|
|
- RegExpUtil.escape(".*/exam/canNotDel/{id}.*"),
|
|
|
- RegExpUtil.escape(".*/exam/updateExamInfo.*"),
|
|
|
- RegExpUtil.escape(".*/exam/updateExamStudent.*"),
|
|
|
- RegExpUtil.escape(".*/exam/updateExamStudent.*"), ".*exam_student.*\\{id\\}.*",
|
|
|
- ".*exam_student.*/all.*"};
|
|
|
+ String[] exclusions = new String[]{
|
|
|
+ RegExpUtil.escape("[${app.api.root}]:[/exam/{id}]:[GET]"),
|
|
|
+ RegExpUtil.escape("[${app.api.root}]:[/exam/canNotDel/{id}]:[PUT]"),
|
|
|
+ RegExpUtil.escape("[${app.api.root}]:[/exam/updateExamInfo]:[PUT]"),
|
|
|
+ RegExpUtil.escape("[${app.api.root}]:[/exam/updateExamStudent]:[PUT]"),
|
|
|
+ RegExpUtil.escape("[${app.api.root}/exam_student]:[/{id}]:[GET]"),
|
|
|
+ RegExpUtil.escape("mapping=[${app.api.root}/exam_student]:[/all]:[GET]")};
|
|
|
return new RequestPermissionInterceptor(redisClient, exclusions) {
|
|
|
|
|
|
@Override
|