mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-17 10:56:39 +08:00
修复初始化无法获取到 urls 问题
Signed-off-by: 丶老实人 <120765338@qq.com>
This commit is contained in:
parent
7b681e44a8
commit
e3888cef9b
@ -49,11 +49,12 @@ public class UrlConfig {
|
||||
Map<RequestMappingInfo, HandlerMethod> map = requestMappingHandlerMapping.getHandlerMethods();
|
||||
for (Map.Entry<RequestMappingInfo, HandlerMethod> entry : map.entrySet()) {
|
||||
RequestMappingInfo requestMappingInfo = entry.getKey();
|
||||
if(requestMappingInfo.getPatternsCondition() == null){
|
||||
PathPatternsRequestCondition pathPatternsCondition = requestMappingInfo.getPathPatternsCondition();
|
||||
if(pathPatternsCondition == null){
|
||||
continue;
|
||||
}
|
||||
|
||||
Set<String> urls = requestMappingInfo.getPatternsCondition().getPatterns();
|
||||
Set<String> urls = pathPatternsCondition.getPatternValues();
|
||||
if (CollectionUtils.isEmpty(urls)) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user