【发布时间】:2010-03-26 14:57:03
【问题描述】:
我正在用 maven 构建我的项目,所以根据 maven 方式,配置应该在 src/main/conf 中,我怎么能对我的 spring 应用程序上下文说那是找到 jdbc.properties 的地方?这是示例 bean:
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="jdbc.properties" />
</bean>
Spring 假设此配置位于 src/main/webapp/WEB-INF 中,希望我已经清楚,如果不是,我会重新表述我的问题,谢谢
【问题讨论】: