diff --git a/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/annotation/RequestParamParameterProcessor.java b/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/annotation/RequestParamParameterProcessor.java index c73e90894..bc4d71688 100644 --- a/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/annotation/RequestParamParameterProcessor.java +++ b/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/annotation/RequestParamParameterProcessor.java @@ -60,7 +60,8 @@ public boolean processArgument(AnnotatedParameterContext context, Annotation ann RequestParam requestParam = ANNOTATION.cast(annotation); String name = requestParam.value(); - checkState(emptyToNull(name) != null, "RequestParam.value() was empty on parameter %s", parameterIndex); + checkState(emptyToNull(name) != null, "RequestParam.value() was empty on parameter %s of method %s", + parameterIndex, method.getName()); context.setParameterName(name); Collection query = context.setTemplateParameter(name, data.template().queries().get(name));