spring.xml
2.92 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
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"
default-autowire="byName">
<context:component-scan base-package="com.diligrp.mobsite.getway" />
<context:component-scan base-package="com.diligrp.swaggerConfig" />
<!--<context:component-scan base-package="com.dili" />-->
<!--<mvc:resources mapping="/swagger/**" location="/WEB-INF/swagger/"/>-->
<mvc:annotation-driven/>
<aop:aspectj-autoproxy proxy-target-class="true"/>
<bean
class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:db.properties</value>
<value>classpath:config.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
<!-- 自动注入ApplicationContext -->
<bean class="com.diligrp.website.util.spring.ApplicationContextUtil" />
<!-- jackson -->
<bean
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<list>
<bean
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter" />
<bean
class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/plain; charset=UTF-8</value>
</list>
</property>
</bean>
</list>
</property>
</bean>
<bean class="com.diligrp.util.rocketMQUtil.DiliMQLauncher" />
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"
p:viewClass="org.springframework.web.servlet.view.JstlView"
p:prefix="/WEB-INF/"
p:suffix=""></bean>
<import resource="classpath:spring-web.xml" />
<import resource="classpath:spring-dao.xml" />
<import resource="classpath:spring-redis.xml" />
<import resource="classpath:spring-rpc.xml" />
<!--<import resource="classpath:spring-hbase.xml" />-->
</beans>