context:property-placeholde

spring配置文件中添加:

<context:property-placeholder location="classpath:jdbc.properties"/>

或者

<bean id="propertyPlaceholderConfigurer" class="org.springframework,beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations">
        <list>
            <value>jdbc.properties<value/>
        </list>
    </property>
</bean>
posted @ 2019-07-03 17:07  He_quotes  阅读(137)  评论(0)    收藏  举报