我在一个新的应用程序中工作,并在一个applicationContext中找到了这个xml:
<context:property-placeholder location="classpath:conf/taskExecutor-${my.env:test}.properties, classpath:conf/application-${my.env:test}.properties" />我知道“春天”中的el表达式,这是我第一次看到这样的el:
${var:something}“:”之后的短语是什么?
我在Spring里什么也没发现。
谢谢。
发布于 2014-01-15 10:11:09
此语法对应于默认值:
${var:defaultValue}如果没有设置${var},它将返回defaultValue。
https://stackoverflow.com/questions/21134140
复制相似问题