SPEL (Spring Expression Language)

SPEL can be used in both xml and annotation. So here are some operators can't be used in SPEL in the same way as Java.

Such as, ">" "<", because they will cause ambiguities when parsing xml. Below are some examples:

1. SPEL in xml

2. SPEL in annotation

3. new in SPEL

 

4. Use static fields in SPEL

5. Calculation and logic checking in SPEL

 

posted @ 2016-10-02 15:12  FunnyBear  阅读(210)  评论(0)    收藏  举报