-
Notifications
You must be signed in to change notification settings - Fork 0
SpelExpressionParser
kim edited this page Feb 13, 2017
·
1 revision
public static class CTest {
private String test;
public String getTest() {
return test;
}
public void setTest(String test) {
this.test = test;
}
}
public static void main(String[] args) {
CTest test = new CTest();
test.setTest("This is a test");
StandardEvaluationContext context = new StandardEvaluationContext(test);
SpelExpressionParser parser = new SpelExpressionParser();
System.out.println(parser.parseExpression("test == 'This is a test'").getValue(context));
}