<?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:mvc="http://www.springframework.org/schema/mvc"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:task="http://www.springframework.org/schema/task" 
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
        http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
        http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.1.xsd">

<context:component-scan base-package="cn.roadm.service" />

	<bean id="tools" class="cn.roadm.util.Tools">
		<property name="senstiveWordService" ref="senstiveWordService" />
	</bean>

	<bean id="sysInitBean" class="cn.roadm.init.SysInitBean"/>
	
    <!-- 启用注解驱动的定时任务 -->
    <task:annotation-driven scheduler="scheduler"/> 
    <!-- 配置定时任务的线程池注：spring定时任务默认单线程，推荐配置线程池，若不配置多任务下会有问题。 -->
	<task:scheduler id="scheduler" pool-size="10" />
		<!-- 扫描任务 -->
    <context:component-scan base-package="cn.roadm.job" />
<!--	redis mq 扫描-->
	<context:component-scan base-package="cn.roadm.component" />

	<context:component-scan base-package="cn.roadm.config"/>
</beans>
