Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法使用@Value注释来检索 2 个属性值并将它们合并为 1?
@Value
public void setPath(@Value("{#foo['base']+#foo['subdirectory']}) File file)
根据弹簧文档,您已获得
.concat()
但我真的不知道它是否有效......