问题
I'm a little confused concerning when to use $ compared to #. Spring's documentation only uses #
I need to know when to use $ and # ? Can i use # in the MVC jsp pages ?
回答1:
According to this :
${...} 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.
来源:https://stackoverflow.com/questions/50695488/spring-expression-language-dollar-vs-hash-vs