<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <import resource="spring/context/ApplicationContext-doc.xml"/> <import resource="spring/context/ApplicationContext-XML.xml"/> <import resource="spring/context/ApplicationContext-mrp.xml"/> <import resource="spring/context/ApplicationContext-flashreport.xml"/> <bean id="securityService" class="com.hitsnail.security.service.SecurityService"> <property name="menuType"> <value>menu</value> </property> <property name="functionType"> <value>function</value> </property> </bean> <bean id="securityModelService" class="com.hitsnail.permission.service.SecurityModelService"> <property name="filePath"> <value>D:\workdir\Projects\template\.deployables\template\permission\permission.xls</value> </property> </bean> <bean id="systemConfig" class="com.hitsnail.service.SystemConfig"> <property name="map"> <map> <entry key="RTXHost"> <value>http://localhost:8012</value> </entry> <entry key="RTXEncoding"> <value>ISO8859-1</value> <!-- Tomcat下设为GBK 在Weblogic下要设为 ISO8859-1 --> </entry> <!-- 公文管理处理用纸 模板路径 --> <entry key="SEND_TR"> <value>/WEB-INF/xls/platform/sent01.xls</value> </entry> </map> </property> </bean> </beans>
使用:
String host=DevelopConfig.getConfig("RTXHost");