fix: 修复路径参数识别的bug

This commit is contained in:
wangyu 2024-05-27 17:13:38 +08:00
parent e5f55d78b3
commit 54238349a4

View File

@ -36,6 +36,6 @@ public class RestPathParamArgumentResolver implements RestArgumentResolver {
public void resolve(ArgumentResolveContext context, Parameter parameter, Object value) {
RestPathParam annotation = parameter.getAnnotation(RestPathParam.class);
String name = DataUtils.isNotBlank(annotation.value()) ? annotation.value() : parameter.getName();
context.setPathParam(parameter.getName(), value);
context.setPathParam(name, value);
}
}