<?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:dubbo="http://code.alibabatech.com/schema/dubbo"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
	http://www.springframework.org/schema/beans/spring-beans.xsd 
	http://code.alibabatech.com/schema/dubbo 
	http://code.alibabatech.com/schema/dubbo/dubbo.xsd"> 

	<bean id="propertyConfigurer"
		class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="locations">
			<list>
				<value>classpath:jdbc.properties</value>
				<value>classpath:application.properties</value>
				<value>classpath:redis.properties</value>
			</list>
		</property>
	</bean>

	<import resource="spring-mvc.xml" />
	<import resource="spring-database.xml" />
	<import resource="spring-redis.xml" />

	<dubbo:application name="${base.name}" />
	<!-- 使用zookeeper注册中心暴露服务地址 -->
	<dubbo:registry address="${base.zookeepr}" />

	<!-- 用dubbo协议在28080端口暴露服务 -->
	<dubbo:protocol name="dubbo" port="${base.port}" />
	<dubbo:provider timeout="${base.timeout}" threadpool="${base.threadpool}"
		threads="${base.threads}" accepts="${base.accepts}" retries="${base.retries}" />
	<dubbo:annotation package="${base.service.impl.package}" /> 
</beans>