<bean id="placeholderConfig"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>classpath:init.properties</value>
</property>
</bean>
这个bean配置是什么意思 ?配置了这个就能在下面的配置使用映射值么?
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>classpath:init.properties</value>
</property>
</bean>
这个bean配置是什么意思 ?配置了这个就能在下面的配置使用映射值么?
解决方案 »
- tomcat不能正常启动
- Spring中WebApplicationContextUtils初始话ApplicationContext遇到的问题?
- 在环境变量中如何将我的工作目录设为java编译时寻找原文件的默认路径?
- struts+hibernate下运行实例的错误---急、在线等!
- 在使用weblogic的连接池的时候,取得的连接实例关闭方法是真正关闭数据库连接么?
- 请给一个TOMCAT的下载地址啊,谢谢!
- ★★===又是两个关于struts的问题!===★★
- 菜鸟问题:实体ejb只能先插如一条记录,然后才能用他的查询吗?
- 请问什么叫servlet?ejb?作什么用?
- C++结构体改写为java结构体
- Socket 发送图片
- springsecurity的xml配置,字符串值中如果有空格,如何处理
在XML中替换为占位该键($key$)的值>所以你的配置中可以使用
可以用来注入其他bean供其他bean使用该文檔