mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-17 19:06:39 +08:00
commit
55fb01174f
@ -49,11 +49,12 @@ public class UrlConfig {
|
|||||||
Map<RequestMappingInfo, HandlerMethod> map = requestMappingHandlerMapping.getHandlerMethods();
|
Map<RequestMappingInfo, HandlerMethod> map = requestMappingHandlerMapping.getHandlerMethods();
|
||||||
for (Map.Entry<RequestMappingInfo, HandlerMethod> entry : map.entrySet()) {
|
for (Map.Entry<RequestMappingInfo, HandlerMethod> entry : map.entrySet()) {
|
||||||
RequestMappingInfo requestMappingInfo = entry.getKey();
|
RequestMappingInfo requestMappingInfo = entry.getKey();
|
||||||
if(requestMappingInfo.getPatternsCondition() == null){
|
PathPatternsRequestCondition pathPatternsCondition = requestMappingInfo.getPathPatternsCondition();
|
||||||
|
if(pathPatternsCondition == null){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<String> urls = requestMappingInfo.getPatternsCondition().getPatterns();
|
Set<String> urls = pathPatternsCondition.getPatternValues();
|
||||||
if (CollectionUtils.isEmpty(urls)) {
|
if (CollectionUtils.isEmpty(urls)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user