spring-config.xml 1.85 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:mvc="http://www.springframework.org/schema/mvc"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       		http://www.springframework.org/schema/beans/spring-beans.xsd 




       		http://www.springframework.org/schema/mvc
       		http://www.springframework.org/schema/mvc/spring-mvc.xsd"
       default-autowire="byName">
    <mvc:annotation-driven>

        <mvc:message-converters register-defaults="true">
            <!-- 将StringHttpMessageConverter的默认编码设为UTF-8 -->
            <bean class="org.springframework.http.converter.StringHttpMessageConverter">
                <constructor-arg value="UTF-8"/>
            </bean>
        </mvc:message-converters>

    </mvc:annotation-driven>

    <mvc:annotation-driven />

	<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="locations">
			<list>
				<value>classpath:conf/important.properties</value>
				<value>classpath:conf/manage.properties</value>
				<value>classpath:conf/titan.properties</value>
				<value>classpath:conf/titan.topic.properties</value>
			</list>
		</property>
	</bean>

	<import resource="classpath:spring-config-servlet.xml" />
    <import resource="classpath*:spring-config-dao.xml" />
	<import resource="classpath*:spring-config-service.xml" />
	<import resource="classpath*:spring-config-rpc.xml" />
    <import resource="classpath*:spring-config-redis.xml" />
    <import resource="classpath*:spring-redis-manager.xml" />
	<import resource="classpath*:spring-config-mq.xml" />
</beans>