<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="db.properties"></property>
</bean>
<!-- 引入属性文件 方法二 要引入context命名空间-->
<context:property-placeholder location="db.properties"/>
spring xml中如何引入外部配置文件
最新推荐文章于 2023-08-05 15:57:32 发布