What are some valid uses for spEL (Spring Expression Language) ?

前端 未结 2 1696
独厮守ぢ
独厮守ぢ 2021-02-12 23:04

I was looking at spring expression language and it seems very useful if you are using for configuration xml files. However, the reference docs provide lot of examples that use t

2条回答
  •  悲&欢浪女
    2021-02-12 23:31

    In order to evaluate arbitrary runtime expressions in java you'd need to use the compilation framework, create a class, compile it, load it, bind it, execute it, ...

    Expression languages and/or scripting eliminate a lot of additional work not directly related to the problem you're trying to solve. Which EL makes the most sense to use depends on several factors.

提交回复
热议问题