修复上传时接口冲突检测未区分请求方法的问题

This commit is contained in:
mxd
2022-03-05 21:53:39 +08:00
parent 84a46d7766
commit 3b417228f8

View File

@@ -23,6 +23,11 @@ public class ApiInfoMagicResourceStorage extends AbstractPathMagicResourceStorag
return ApiInfo.class;
}
@Override
public String buildMappingKey(ApiInfo info, String path) {
return info.getMethod().toUpperCase() + ":" + super.buildMappingKey(info, path);
}
@Override
public String buildMappingKey(ApiInfo info) {
return info.getMethod().toUpperCase() + ":" + PathUtils.replaceSlash(this.prefix + buildMappingKey(info, magicResourceService.getGroupPath(info.getGroupId())));