配置Bean
- <bean id="propertyConfigurer"
- class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" lazy-init="false">
- <property name="locations">
- <list>
- <value>/WEB-INF/jdbc.properties</value>
- </list>
- </property>
- </bean>
引用
- <property name="username" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />