class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
hello.properties
引用:
aaa
${name}
-----------------------------------------------------------------
如果有多个.properties档案,则可以透过locations属性来设定,例如:
"">
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
hello.properties
welcome.properties
other.properties
${onlyfun.caterpillar.helloWord}
...
阅读(9486) | 评论(0) | 转发(0) |