2013-02-15 51 views
0

有沒有辦法使用@Value註釋來檢索2個屬性值並將它們合併爲1?Spel表達式彈簧

public void setPath(@Value("{#foo['base']+#foo['subdirectory']}) File file) 

回答

0

根據春季documentation你得到了

.concat()

但我真的不知道它的工作原理...

+0

很抱歉,但康卡斯特功能沒有工作 – 2013-02-15 17:04:46

+0

$標誌爲我工作 – 2013-02-17 23:24:25