2019-10-30 21:19
boolean matched = false;
String path = inv.getActionKey();
AntPathMatcher antPathMatcher = new AntPathMatcher();
for(String permission: userSession.getPermissions()){
if(antPathMatcher.match(permission,path)){
matched = true;
break;
}
}
Interceptor中代码如上, 就想替换掉里面用的AntPathMatcher , 搜索了好久, 好象只在org.srpingframework.core中有