Spring spEL

1.Spring 表达式语言:是一个支持运行时查询和操做对象图的强大的表达式语言。java

2.spEL使用#{}做为定界符。对象

3.使用spel引用类的静态属性#{T(java.lang.Math).PI*88};ci

4.使用spel来引用其它的bean#{car} car属于其它bean;it

5.使用spel来引用其它bean的属性#{address.city}引用

6.在spel中使用运算符#{car.price>30000?'金领':'白领'};查询

相关文章
相关标签/搜索