hz-zhhq-ht-service/greenWebmodul/config/mddResource.xml

31 lines
2.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:module="http://www.sgcc.com.cn/schema/platform/module" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/context/spring-context.xsd http://www.sgcc.com.cn/schema/platform/module http://www.sgcc.com.cn/schema/platform/module/module.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 元数据查询服务引用 -->
<module:reference id="metadataService" targetName="com.sgcc.uap.mdd.runtime.meta.IMetadataService" filter="platform_service_idname=metadataServiceService"/>
<!-- 数据查询服务引用 -->
<module:reference id="runtimeDataService" targetName="com.sgcc.uap.mdd.runtime.data.IDataService" filter="platform_service_idname=runtimeDataServiceService"/>
<!-- 校验服务引用 -->
<module:reference id="validateService" targetName="com.sgcc.uap.mdd.runtime.validate.IValidateService" filter="platform_service_idname=validateServiceService"/>
<!-- SessionFactory引用 -->
<module:reference id="sessionFactory" targetName="org.hibernate.SessionFactory" filter="platform_service_idname=sessionFactoryService"/>
<bean class="com.sgcc.uap.mdd.runtime.utils.BeanUtilsConfig"/>
<bean id="coverter" class="com.sgcc.uap.mdd.runtime.utils.HttpMessageConverter">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<!-- 文件上传解析器 -->
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- 请求编码格式 -->
<property name="defaultEncoding" value="utf-8"/>
<!-- 上传文件大小(单位:字节) -->
<property name="maxUploadSize" value="524288000"/>
<!-- 缓冲区大小(单位:KB) -->
<property name="maxInMemorySize" value="1024"/>
</bean>
<bean id="TicketProvideBean" class="com.nationalelectric.greenweb.Job.TicketProvideBean"/>
<!-- <bean id="PicBean" class="com.nationalelectric.greenweb.Job.PicBean"/> -->
</beans>