Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sffej/cc99915411ded5a319f9e182a5b31c05 to your computer and use it in GitHub Desktop.
Save sffej/cc99915411ded5a319f9e182a5b31c05 to your computer and use it in GitHub Desktop.
memo: What is different ${...} and #{...} on spring

http://stackoverflow.com/questions/5322632/spring-expression-language-spel-with-value-dollar-vs-hash-vs

${...} is the property placeholder syntax. It can only be used to dereference properties.

#{...} is SpEL syntax, which is far more capable and complex. It can also handle property placeholders, and a lot more besides.

Both are valid, and neither is deprecated.

Memo of SpEL https://sites.google.com/site/soracane/home/springnitsuite/spring-no-ji-nengnitsuite/4-spring-expression-langage-spel-shi-xml-dengde-shi-yongdekiruel-shi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment