`

ant 打包加载jdbc文件

 
阅读更多
<context:property-placeholder location="classpath:*jdbc.properties" />

ant在打包,,通过spring加载jdbc.properties文件时,,加载不成功,将上面的写法改成下面的写法就行了!
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>classpath:jdbc.properties</value>
</property>
</bean>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics