提交 cd9f0bc1 编写于 作者: K Keith Donald

package info

上级 522475a0
......@@ -30,7 +30,7 @@ import org.springframework.model.binder.BindingResult;
/**
* A {@link Binder} implementation that accepts any target object and uses
* Spring's Expression Language support to evaluate the keys in the field
* Spring's Expression Language (SpEL) to evaluate the keys in the field
* value Map.
* @author Mark Fisher
* @since 3.0
......@@ -43,12 +43,11 @@ public class GenericBinder extends AbstractBinder<Object> {
@Override
protected FieldBinder createFieldBinder(Object model) {
StandardEvaluationContext evaluationContext = new StandardEvaluationContext();
evaluationContext.setRootObject(model);
return new EvaluationContextFieldBinder(parser, evaluationContext);
StandardEvaluationContext context = new StandardEvaluationContext();
context.setRootObject(model);
return new EvaluationContextFieldBinder(parser, context);
}
private static class EvaluationContextFieldBinder implements FieldBinder {
private final ExpressionParser parser;
......
/**
* Binder API implementation support.
*/
package org.springframework.model.binder.support;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册