Spring的xml中引入其他文件

引入db.properties

    <!--加载db.properties文件-->
    <context:property-placeholder location="classpath:properties/db.properties"/>

引入其他xml文件

<import resource="classpath:spring-dao.xml"/>

猜你喜欢

转载自www.cnblogs.com/kitor/p/10991806.html