spring.xml 2.1 KB
<?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:aop="http://www.springframework.org/schema/aop" xmlns:cache="http://www.springframework.org/schema/cache"
	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/context/spring-context.xsd
       		http://www.springframework.org/schema/aop 
       		http://www.springframework.org/schema/aop/spring-aop.xsd
            http://www.springframework.org/schema/mvc
       		http://www.springframework.org/schema/mvc/spring-mvc.xsd
			http://www.springframework.org/schema/cache
			http://www.springframework.org/schema/cache/spring-cache-4.3.xsd"
	default-autowire="byName" default-lazy-init="true">
	<!--<context:component-scan base-package="com.diligrp.orders"> -->
	<!--<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" 
		/> -->
	<!--</context:component-scan> -->
	<context:annotation-config />

	<cache:annotation-driven cache-manager="cacheManager"
		key-generator="cacheKeyGenerator" />

	<aop:aspectj-autoproxy proxy-target-class="true" />

	<bean id="diliMQConsumer" class="com.diligrp.util.rocketMQUtil.impl.DiliMQConsumerImpl"
		init-method="startListener" destroy-method="stopListener">
		<property name="namesrvAddr" value="${mq.namesrvAddr}"></property>
		<property name="producerGroup" value="${mq.producerGroup}"></property>
	</bean>
	<bean id="propertyConfigurer"
		class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="locations">
			<list>
				<value>classpath:conf/jdbc.properties</value>
				<value>classpath:conf/config.properties</value>
				<value>classpath:conf/manage.properties</value>
			</list>
		</property>
	</bean>


	<import resource="classpath*:spring-mvc.xml" />
	<import resource="classpath*:spring-dao.xml" />
</beans>