fixed: 路径匹配问题

This commit is contained in:
wangiegie@gmail.com 2017-11-05 14:56:15 +08:00
parent 451ff099d2
commit 73379652c9
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ public class PermissionServiceImpl implements PermissionService {
if (principal != null) { if (principal != null) {
Set<String> urls = menuService.findMenuByRole(grantedAuthorityList.get(0).getAuthority()); Set<String> urls = menuService.findMenuByRole(grantedAuthorityList.get(0).getAuthority());
for (String url : urls) { for (String url : urls) {
if (antPathMatcher.match(request.getRequestURI(), url)) { if (antPathMatcher.match(url,request.getRequestURI())) {
hasPermission = true; hasPermission = true;
break; break;
} }