| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 | <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"	xmlns:context="http://www.springframework.org/schema/context"	xmlns:aop="http://www.springframework.org/schema/aop" xmlns:jaxws="http://cxf.apache.org/jaxws"	xmlns:jaxrs="http://cxf.apache.org/jaxrs"	xsi:schemaLocation="		http://www.springframework.org/schema/context           http://www.springframework.org/schema/context/spring-context-3.1.xsd        http://www.springframework.org/schema/aop		http://www.springframework.org/schema/aop/spring-aop-3.1.xsd        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd		http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd		http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">			<!-- 引用ehCache的配置 -->	<bean id="defaultCacheManager"		class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">		<property name="configLocation">			<value>/WEB-INF/ehcache.xml</value>		</property>	</bean>	<!-- 定义ehCache的工厂,并设置所使用的Cache name -->	<bean id="defCache"		class="org.springframework.cache.ehcache.EhCacheFactoryBean">		<property name="cacheManager">			<ref local="defaultCacheManager" />		</property>		<property name="cacheName">			<value>defCache</value>		</property>	</bean>			<bean id="CbdtDataService" class="com.jsjty.zygl.service.impl.CbdtDataServiceImpl">		<property name="ehCache" ref="defCache"></property>		<property name="cbdtAisServie" ref="cbdtAisServiceImpl"></property>		<property name="gisService" ref="gisServiceImpl"></property>	</bean>	 	<!--      <bean name="jobDetail2" 	class="org.springframework.scheduling.quartz.JobDetailFactoryBean">		<property name="jobClass" value="com.kcb.common.quartz.QuartzJob" /> 		<property name="jobDataMap">			<map>				<entry key="dbWrapper" value-ref="dbWrapper" />			</map>		</property>		<property name="durability" value="true" />	</bean>	-->	<bean id="gisJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">		<property name="targetObject" ref="CbdtDataService" />		<property name="targetMethod" value="loadData" />		<property name="concurrent" value="false"/>	</bean>			<bean id="gisCronTriggerBean" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">        <property name="jobDetail" ref="gisJobDetail"></property>        <property name="cronExpression" value="0 0/3 * * * ?"></property>        <!--<property name="cronExpression" value="0/10 * * * * ?"></property>-->        <!--<property name="cronExpression" value="0 0/5 * * * ?"></property>-->    </bean>            <bean id="gisHsJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">		<property name="targetObject" ref="CbdtDataService" />		<property name="targetMethod" value="loadHsAisLData" />		<property name="concurrent" value="false"/>	</bean>		<bean id="gisHsCronTriggerBean" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">        <property name="jobDetail" ref="gisHsJobDetail"></property>        <property name="cronExpression" value="0 0/1 * * * ?"></property>    </bean>        <!--      <bean id="gistrigger" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">    	  		<property name="jobDetails">			<list>				<ref bean="gisJobDetail" />			</list>		</property>		           <property name="triggers">            <list>                <ref bean="gisCronTriggerBean"/>            </list>        </property>    </bean> 		-->        </beans>
 |