你好,
有没有办法从web.xml的context-param获取值并传递到Spring上下文中?
例如,我在web.xml中定义了一个值:
<context-param>
<param-name>compass-index</param-name>
<param-value>file:///home/compass/index</param-value>
</context-param>
我希望将该值分配给bean属性:
<bean ...>
<props>
<prop key="compass.engine.connection">
${from web.xml context-param?}
</prop>
</props>
</bean>
提前感谢?