<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
	default-autowire="byName" default-lazy-init="true">
	<description>Spring-web core配置</description>

	<bean id="propertyConfigurer"
		class="com.cloudcross.ssp.base.utils.springbean.AnnotationBeanPostProcessor">
		<property name="locations">
			<list>
				<value>classpath*:application-unit.properties</value>
			</list>
		</property>
	</bean>

	<!-- 定义freemarker模板处理器 -->	
	<bean id="freemarkerTemplateProcessor" class="com.cloudcross.ssp.base.utils.freemarker.FreemarkerTemplateProcessor">
		<property name="configuration">
			<bean class="org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean">
				<property name="templateLoaderPath" value="${template.load.dir}" />
				<property name="defaultEncoding" value="UTF-8"/>
			</bean>
		</property>
	</bean>
	<import resource="classpath:config/spring/spring-mvc.xml"/>
	<import resource="classpath:config/spring/mod/spring-security.xml"/>
	<import resource="classpath:config/spring/mod/spring-mail.xml"/>
	<import resource="classpath:config/spring/mod/spring-context.xml"/>
	<import resource="classpath:config/spring/mod/spring-orm.xml"/>
</beans>