fixed @RequestParam(required=false) regression for @InitBinder methods (SPR-6878)

This commit is contained in:
Juergen Hoeller
2010-02-20 16:14:14 +00:00
parent 67b342d923
commit 44ef114981
2 changed files with 9 additions and 5 deletions

View File

@@ -358,7 +358,7 @@ public class HandlerMethodInvoker {
RequestParam requestParam = (RequestParam) paramAnn;
paramName = requestParam.value();
paramRequired = requestParam.required();
paramDefaultValue = requestParam.defaultValue();
paramDefaultValue = parseDefaultValueAttribute(requestParam.defaultValue());
break;
}
else if (ModelAttribute.class.isInstance(paramAnn)) {