<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:cache="http://www.springframework.org/schema/cache" xmlns:task="http://www.springframework.org/schema/task"
	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-3.1.xsd
                           http://www.springframework.org/schema/tx      http://www.springframework.org/schema/tx/spring-tx-3.1.xsd 
                           http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache-3.1.xsd
                           http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">

	<!-- 采用注释的方式配置bean -->
	<context:annotation-config />

	<!-- 配置要扫描的包 -->
	<context:component-scan base-package="com.lyms.platform.biz.service" />
	<!-- 配置要扫描的包 -->
	<context:component-scan base-package="com.lyms.platform.biz.dal.impl" />
	<context:component-scan base-package="com.lyms.platform.permission.*" />
	<bean id="configProperties"
		class="org.springframework.beans.factory.config.PropertiesFactoryBean">
		<property name="locations">
			<list>
				<value>classpath:database.properties</value>
			</list>
		</property>
	</bean>
	<bean id="propertyConfigurer"
		class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
		<property name="properties" ref="configProperties" />
	</bean>


	<!-- 提示信息加载类 -->
	<bean class="com.lyms.platform.common.core.resolve.MessageResolver">
		<property name="messageFile" value="message.properties"/>
	</bean>

	<!-- 配置要扫描的包 -->
	<context:component-scan base-package="com.lyms.platform.msg" />

	<import resource="classpath:/spring/applicationContext_biz_patient.xml"/>
	<import resource="classpath:/spring/applicationContext-dal.xml"/>
	<!--<import resource="classpath:/spring/applicationContext-quartz.xml"/>-->
</beans>