ParserContext template delimiters¶
In the Spring Expression Language (SpEL), the ParserContext interface is used to define how expressions are parsed, specifically by setting the template prefix and delimiters.^[600-developer-spring-spring-spel.md]
The default delimiter configuration for SpEL expressions is #{ <expression string> }.^[600-developer-spring-spring-spel.md] This syntax is used in standard cases to demarcate the beginning and end of an expression string.^[600-developer-spring-spring-spel.md]
When processing expressions programmatically, the ParserContext.TEMPLATE_EXPRESSION constant can be passed to the parser to handle these delimiters correctly.^[600-developer-spring-spring-spel.md]
Sources¶
600-developer-spring-spring-spel.md