O'Reilly logo
  • Eric Honsey thinks this is interesting:

But it doesn’t take much of a stretch to realize that it’s also dangerous. SpEL expressions are ultimately just Strings that are tricky to test and have no IDE support for syntax checking.

I encourage you to use SpEL wherever it can simplify what would otherwise be difficult (or even impossible) wirings. But be careful to not get too carried away with SpEL. Fight the temptation to put too much logic into a SpEL expression.


Cover of Spring in Action, Third Edition


Definitive drawback to using too much logic in SpEL