spring.xml
2.88 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?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-lazy-init="true">
<context:component-scan base-package="com.b2c.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="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
<property name="ignoreResourceNotFound" value="true" />
<property name="ignoreUnresolvablePlaceholders" value="true" />
<property name="locations">
<list>
<value>classpath:conf/important.properties</value>
<value>classpath:conf/orders-production.properties</value>
<value>classpath:conf/manage.properties</value>
</list>
</property>
</bean>
<!-- Access resource bundles with the specified basename -->
<bean id="messageSource"
class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<!-- <property name="basenames" value="/WEB-INF/i18n/content,/WEB-INF/i18n/validation,/WEB-INF/i18n/asset,/WEB-INF/i18n/enum"
/> -->
<property name="basenames">
<list>
<value>/WEB-INF/i18n/msg-notice-template</value>
<value>/WEB-INF/i18n/msg-todoitem-template</value>
</list>
</property>
<!-- 刷新资源文件的周期,以秒为单位 -->
<property name="cacheSeconds" value="60" />
</bean>
<!-- <import resource="classpath*:spring-config-service.xml"/> -->
<import resource="classpath*:springmvc-config.xml" />
<import resource="classpath*:spring-dao.xml"/>
<import resource="classpath*:spring-rpc.xml"/>
<!-- <import resource="classpath*:spring-redis.xml"/> -->
<!-- <import resource="classpath*:spring-website-redis.xml"/> -->
<!-- <import resource="classpath*:spring-config-dtms-forOrdersWeb.xml"/> -->
</beans>