首页 > 代码库 > SPEL (Spring Expression Language)

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

技术分享

 

SPEL (Spring Expression Language)