#spring-expression
Posts
-
Digging into Spring's Source 15: SpEL — How an Expression Is Parsed and Evaluated
How a string like "#{T(java.lang.Math).max(a, 3) + 1}" becomes tokens, then a tree, then a value, followed through the source. How operator precedence is expressed as the call order of parser methods, why there are two evaluation contexts (StandardEvaluationContext and SimpleEvaluationContext), the compiler mode that turns an expression into bytecode, and the path a @Value("#{…}") takes inside the container — explained for someone seeing Spring for the first time.