<?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");
本文介绍了一个Spring框架的配置文件示例,展示了如何定义并引入多个配置文件,包括具体的服务类和属性配置细节。
2040

被折叠的 条评论
为什么被折叠?



