spring.xml
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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>