Spring解析properties文件
spring配置文件
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>欠款
<value>classpath:/config/sps.properties</value>
</list>
</property>
</bean>
spring配置文件
<!-- sys配置文件的读取 -->
<bean id="spsProperties" class="com.iman.sps.domain.model.sheet.SpsProperties">
<property name="wrmErrorDataTemplate">
<value>${wrmErrorDataTemplate}</value>
</property>
<property name="excelTemplateFilePath">
<value>${excelTemplateFilePath}</value>
</property>
<property name="execelDownloadFilePath">
<value>${execelDownloadFilePath}</value>
</property>
<property name="siteExcelData">
<value>${siteExcelData}</value>
</property>
<property name="mssNeExcelData">
<value>${mssNeExcelData}</value>
</property>
<property name="mgwNeExcelData">
<value>${mgwNeExcelData}</value>软件开发
</property>
<property name="rackExcelData">
<value>${rackExcelData}</value>
</property>
<property name="shelfExcelData">
<value>${shelfExcelData}</value>
</property>
<property name="slotExcelData">
<value>${slotExcelData}</value>
</property>
<property name="cardExcelData">
<value>${cardExcelData}</value>
</property>
<property name="portExcelData">
<value>${portExcelData}</value>
</property>
<property name="puyuanManagerUrl">
<value>${puyuanManagerUrl}</value>
</property>
<property name="BTSExcelData">
<value>${BTSExcelData}</value>
</property>
<property name="trunkExcelData">
<value>${trunkExcelData}</value>
</property>
<property name="ceResourceAllocateExcelData">
<value>${ceResourceAllocateExcelData}</value>
</property>
</bean>