spring替换类ExpressionEvaluationUtils

时间:2015-12-01 08:53:01

标签: spring expression-evaluation

我有以下代码,我将项目从春季3迁移到春季4。 但ExpressionEvaluationUtils实际上已经过时了。 你有什么想法替换它吗?

/**
 * Set quote escaping for this tag, as boolean value. Default is "true".
 */
public void setQuoteEscape(String quoteEscape) throws JspException {
    this.quoteEscape = ExpressionEvaluationUtils.evaluateBoolean("quoteEscape", quoteEscape, pageContext);
}

/**
 * Set breakLine escaping for this tag, as boolean value. Default is "true".
 */
public void setBackslashEscape(String backslashEscape) throws JspException {
    this.backslashEscape = ExpressionEvaluationUtils.evaluateBoolean("backslashEscape", backslashEscape, pageContext);
}

你有什么想法替换它吗?

0 个答案:

没有答案