2014-09-24 86 views

回答

0

你可以做這樣的事情

<context:property-placeholder location="classpath:file1.properties,classpath*:project-common.properties,classpath*:project-${spring.profiles.active}.properties"/> 

在我而言,這是一個遺留系統,使屬性文件並沒有一定的標準名稱,但可以肯定,你可以使用通配符來引用您的屬性文件。

<context:property-placeholder location="classpath:*.properties"/> 
相關問題