fix: 修复路径参数识别的bug
This commit is contained in:
parent
e5f55d78b3
commit
54238349a4
@ -36,6 +36,6 @@ public class RestPathParamArgumentResolver implements RestArgumentResolver {
|
|||||||
public void resolve(ArgumentResolveContext context, Parameter parameter, Object value) {
|
public void resolve(ArgumentResolveContext context, Parameter parameter, Object value) {
|
||||||
RestPathParam annotation = parameter.getAnnotation(RestPathParam.class);
|
RestPathParam annotation = parameter.getAnnotation(RestPathParam.class);
|
||||||
String name = DataUtils.isNotBlank(annotation.value()) ? annotation.value() : parameter.getName();
|
String name = DataUtils.isNotBlank(annotation.value()) ? annotation.value() : parameter.getName();
|
||||||
context.setPathParam(parameter.getName(), value);
|
context.setPathParam(name, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user