applicationcontext-xxl-job.xml 1.1 KB
Newer Older
X
xueli.xue 已提交
1 2 3 4 5 6 7 8 9 10 11
<?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:context="http://www.springframework.org/schema/context"
	xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-3.0.xsd
           http://www.springframework.org/schema/util 
           http://www.springframework.org/schema/util/spring-util.xsd">

X
init  
xueli.xue 已提交
12
	<context:component-scan base-package="com.xxl.job.service" />
X
xueli.xue 已提交
13

X
xueli.xue 已提交
14
	<!-- 执行器 -->
X
xueli.xue 已提交
15 16 17
	<bean id="xxlJobJettyServer" class="com.xxl.job.client.netcom.jetty.XxlJobJettyServer" init-method="start">
		<property name="port" value="9999" />
	</bean>
X
xueli.xue 已提交
18 19 20 21 22
	
	<bean id="glueFactory" class="com.xxl.job.client.glue.GlueFactory">
		<property name="cacheTimeout" value="5000" />
		<property name="glueLoader" ref="dbGlueLoader" />
	</bean>
X
xueli.xue 已提交
23

X
xueli.xue 已提交
24
</beans>