spring(11)

在bean文件可以引入properties(key=value)文件的值,${key}
然后还需要添加这一句:
<context : property-placeholder  location="classpath:上面引入properties文件的绝对路径">
如果是多个properties:
<context : property-placeholder  location="classpath:上面引入properties文件的绝对路径,classpath:上面引入properties文件的绝对路径”>
posted on 2012-11-26 16:59  lee0oo0  阅读(183)  评论(0编辑  收藏  举报