1. 程式人生 > >XML檔案中如何讀取xxx.properties檔案中的資料

XML檔案中如何讀取xxx.properties檔案中的資料

<!-- 配置資料庫連線池(c3po) -->
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<!-- 基本資訊 -->
<property name="jdbcUrl" value="${jdbcUrl}"></property>
<property name="driverClass" value="${driverClass}"></property>
<property name="user" value="${username}"></property>
<property name="password" value="${password}"></property>