|
@@ -41,12 +41,12 @@ public class DefaultWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter {
|
|
|
|
|
|
@Bean
|
|
@Bean
|
|
public RequestPermissionInterceptor getRequestPermissionInterceptor() {
|
|
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.*", RegExpUtil.escape("")};
|
|
|
|
|
|
+ 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.*"};
|
|
return new RequestPermissionInterceptor(redisClient, exclusions) {
|
|
return new RequestPermissionInterceptor(redisClient, exclusions) {
|
|
|
|
|
|
@Override
|
|
@Override
|