Update TokenFilter.java

木子李·De 3 years ago
parent cf66fc98fa
commit 2932a09884

@ -127,11 +127,11 @@ public class TokenFilter implements Filter {
//判断接口权限
//请求路径
String requestUrl = request.getRequestURI();
//String requestUrl = request.getRequestURI(); requestUrl中可能会有contextpath而底层扫描的controller是没有的
String servletPath = request.getServletPath();
String methodValue = request.getMethod();
//请求方法+#+请求路径
String urlKey = methodValue + GaeaConstant.URL_SPLIT + requestUrl;
String urlKey = methodValue + GaeaConstant.URL_SPLIT + servletPath;
GaeaUserDto gaeaUserDto = JSONObject.parseObject(gaeaUserJsonStr, GaeaUserDto.class);
List<String> authorities = gaeaUserDto.getAuthorities();

Loading…
Cancel
Save