Spel With Spring Boot
Spel is a powerful expression language used for querying and manipulating an object graph at runtime this article looks at some examples of spel usage in spring boot.
Spel with spring boot. The folks at spring made the spring expression language part of what is considered spring core. There are many expression languages available such as jsp el ognl mvel and jboss el. It can be used to configure spring applications or to write parsers to perform more general tasks in any application.
As the name suggests it is a powerful expression language mainly used in spring framework for evaluating expressions such as mathematical relational logical operations conditional regular expressions etc at runtime. The spring expression language spel is an expression language that supports querying and manipulating an object graph at runtime. Spel is a powerful well supported expression language that can be used across all the products in the spring portfolio.
The code samples in this article are available in the linked github repository. Spel provides some additional features such as method invocation and string templating functionality. It can save you a lot of coding because you can dynamically assign values at runtime.
Spel is an exression language supporting the features of querying and manipulating an object graph at runtime. In this post we ll see examples of using spel with both xml and annotation based configuration.